You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
562 B
YAML

---
# domain: "example.com"
service_name: "{{ domain }}.service"
# TODO Socket
# bind_port
# repo
# system_user: "nodejs"
user_directory: "{{ global_webservers_directory }}/{{ domain }}"
src: "{{ user_directory }}/server"
database_user: "{{ system_user | regex_replace('[^a-zA-Z]', '_') }}"
# database_pass from mysql/database
# database_name from mysql/database
environment_vars: {}
install_command: "sudo -u {{ system_user | quote }} sh -c 'npm i && npm audit fix'"
reload_command: "{{ install_command }} && systemctl restart {{ service_name | quote }}"