1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/petrolette_ynh.git synced 2024-09-03 19:56:26 +02:00
remove path parameter
This commit is contained in:
Tobias Ollive 2021-04-06 15:48:32 +02:00
parent d5fbb2149c
commit b9c35f26a5
3 changed files with 8 additions and 17 deletions

View file

@ -1,14 +1,5 @@
location __PATH__/ { location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
rewrite ^__PATH__$ __PATH__/ break;
proxy_pass http://localhost:__PORT__/; proxy_pass http://localhost:__PORT__/;
proxy_set_header Host $host;
proxy_buffering off;
} }

View file

@ -8,7 +8,7 @@ Environment="PORT=__PORT__"
Environment="__YNH_NODE_LOAD_PATH__" Environment="__YNH_NODE_LOAD_PATH__"
User=__APP__ User=__APP__
Group=__APP__ Group=__APP__
ExecStart=/bin/sh -c ' node http/server.jst' ExecStart=/bin/sh -c ' node http/server.js'
WorkingDirectory=__FINALPATH__/ WorkingDirectory=__FINALPATH__/
StandardOutput=syslog StandardOutput=syslog
StandardError=syslog StandardError=syslog

View file

@ -92,7 +92,7 @@ ynh_script_progression --message="Configuring system user..."
ynh_system_user_create --username=$app --home_dir=$final_path ynh_system_user_create --username=$app --home_dir=$final_path
#================================================= #=================================================
# INSTALL WHITEBOPHIR # INSTALL PETROLETTE
#================================================= #=================================================
ynh_script_progression --message="Installing application using node..." ynh_script_progression --message="Installing application using node..."
@ -129,7 +129,7 @@ ynh_add_systemd_config --others_var="port ynh_node_load_PATH"
ynh_script_progression --message="Starting a systemd service..." ynh_script_progression --message="Starting a systemd service..."
# Start a systemd service # Start a systemd service
ynh_systemd_action --service_name=$app --action=start --log_path=systemd --line_match="server started" ynh_systemd_action --service_name=$app --action=start --log_path=systemd
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT