mirror of
https://github.com/YunoHost-Apps/kiwiirc_ynh.git
synced 2024-09-03 19:35:59 +02:00
Fix
This commit is contained in:
parent
644ac6a23d
commit
8efcb6bc7b
3 changed files with 18 additions and 12 deletions
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue