@ -4,7 +4,7 @@ domain: "spotme.localhost"
spotme_system_user: "{{ domain | regex_replace('[^A-Za-z0-9-]+', '-') }}"
spotme_service_name: "{{ domain }}.service"
spotme_port: 12820
bind_port: 12820
spotme_user_directory: "{{ global_webservers_directory }}/{{ domain }}"
spotme_installation_directory: "{{ spotme_user_directory }}/server"
@ -8,4 +8,4 @@ dependencies:
- role: mysql/database
# database_user
- role: nginx/proxy
backend_port: "{{ spotme_port }}"
backend_port: "{{ bind_port }}"
@ -14,7 +14,7 @@ ExecStart=/usr/bin/npm start
Environment="USER={{ spotme_system_user }}"
Environment="HOME={{ spotme_user_directory }}"
Environment="NODE_ENV=production"
Environment="PORT={{ spotme_port }}"
Environment="PORT={{ bind_port }}"
Environment="DATABASE_HOST=127.0.0.1"
Environment="DATABASE_PORT=3306"
Environment="DATABASE_USERNAME={{ database_user }}"