diff --git a/conf/nginx.conf b/conf/nginx.conf index 46a8aea..e627a86 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -23,7 +23,7 @@ location __PATH__/ { fastcgi_param SCRIPT_FILENAME $request_filename; } - location ~ ^__PATH__/ws/ { + location /movim/ws/ { proxy_pass http://localhost:__PORT__; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; diff --git a/conf/systemd.service b/conf/systemd.service index 14df864..5405792 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -6,7 +6,7 @@ After=nginx.service network.target local-fs.target postgresql.service Type=simple User=__APP__ WorkingDirectory=__FINALPATH__ -ExecStart=/usr/bin/php daemon.php start --url=https://__DOMAIN____PATH__ --port=__PORT__ +ExecStart=/usr/bin/php daemon.php start --url=https://__DOMAIN__ --port=__PORT__ StandardOutput=syslog SyslogIdentifier=__APP__ PIDFile=/run/movim.pid diff --git a/scripts/install b/scripts/install index 016a2bd..9e1bbdf 100644 --- a/scripts/install +++ b/scripts/install @@ -162,7 +162,7 @@ ynh_script_progression --message="Configuring a systemd service..." --weight=1 #ynh_replace_string --match_string="__URL__" --replace_string="${domain}${path_url}" --target_file=../conf/systemd.service ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file=../conf/systemd.service -ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file=../conf/systemd.service +#ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file=../conf/systemd.service ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file=../conf/systemd.service ynh_add_systemd_config