1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ntfy_ynh.git synced 2024-09-03 19:46:27 +02:00
This commit is contained in:
Éric Gaspar 2023-11-27 17:10:27 +01:00
parent f635f7b03e
commit 4369c40793
2 changed files with 7 additions and 3 deletions

View file

@ -1,5 +1,7 @@
location / { #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
proxy_pass http://localhost:__PORT__/; location __PATH__/ {
proxy_pass http://127.0.0.1:__PORT__/;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Host $host; proxy_set_header Host $host;

View file

@ -33,13 +33,15 @@ ynh_secure_remove "$install_dir/server"
#================================================= #=================================================
ynh_script_progression --message="Adding configuration file..." --weight=1 ynh_script_progression --message="Adding configuration file..." --weight=1
ynh_add_config -t "server.yml" -d "$install_dir/server.yml" ynh_add_config --template="server.yml" --destination="$install_dir/server.yml"
#================================================= #=================================================
# SYSTEM CONFIGURATION # SYSTEM CONFIGURATION
#================================================= #=================================================
ynh_script_progression --message="Adding system configurations related to $app..." --weight=1 ynh_script_progression --message="Adding system configurations related to $app..." --weight=1
ynh_add_nginx_config
ynh_add_systemd_config ynh_add_systemd_config
yunohost service add $app --description="Open Source Push Notification Server" --log="/var/log/$app/$app.log" yunohost service add $app --description="Open Source Push Notification Server" --log="/var/log/$app/$app.log"