1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kiwiirc_ynh.git synced 2024-09-03 19:35:59 +02:00
This commit is contained in:
ericgaspar 2022-02-03 18:51:24 +01:00
parent 644ac6a23d
commit 8efcb6bc7b
3 changed files with 18 additions and 12 deletions

View file

@ -1,9 +1,15 @@
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ { location __PATH__/ {
# Path to source proxy_set_header Host $host;
alias __FINALPATH__/ ; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header x-forwarded-for $remote_addr;
# Include SSOWAT user panel. proxy_pass http://127.0.0.1:__PORT__;
include conf.d/yunohost_panel.conf.inc; proxy_redirect default;
# Websocket support (from version 1.4)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
} }

View file

@ -48,11 +48,11 @@ ynh_app_setting_set --app=$app --key=path --value=$path_url
#================================================= #=================================================
# FIND AND OPEN A PORT # FIND AND OPEN A PORT
#================================================= #=================================================
# ynh_script_progression --message="Finding an available port..." --weight=1 ynh_script_progression --message="Finding an available port..." --weight=1
# # Find an available port # Find an available port
# port=$(ynh_find_port --port=7778) port=$(ynh_find_port --port=7778)
# ynh_app_setting_set --app=$app --key=port --value=$port ynh_app_setting_set --app=$app --key=port --value=$port
#================================================= #=================================================
# CREATE DEDICATED USER # CREATE DEDICATED USER

View file

@ -45,11 +45,11 @@ ynh_remove_systemd_config
#================================================= #=================================================
ynh_script_progression --message="Removing KiwiIRC main directory..." --weight=6 ynh_script_progression --message="Removing KiwiIRC main directory..." --weight=6
# Remove the app directory securely # # Remove the app directory securely
ynh_secure_remove --file="$final_path" # ynh_secure_remove --file="$final_path"
ynh_secure_remove --file="/var/www/webircgateway"
# ynh_secure_remove --file="/var/www/webircgateway"
dpkg --remove kiwiirc
#================================================= #=================================================
# REMOVE NGINX CONFIGURATION # REMOVE NGINX CONFIGURATION
#================================================= #=================================================