1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/calibreweb_ynh.git synced 2024-09-03 18:16:20 +02:00
This commit is contained in:
Krakinou 2018-12-08 17:37:56 +01:00
parent 6ee91dae9b
commit 0daf25f754
2 changed files with 8 additions and 16 deletions

View file

@ -1,19 +1,11 @@
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {
# Path to source
alias __FINALPATH__/ ;
location __PATH__ {
# Force usage of https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
proxy_bind $server_adress;
proxy_pass http://127.0.0.1:8083;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Script-Name /__FINALPATH__;
proxy_pass http://localhost:__PORT__;
proxy_set_header X-Forwarded-For $remote_addr;
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}

View file

@ -46,7 +46,7 @@ fi
#=================================================
# Remove metapackage and its dependencies
ynh_remove_app_dependencies
#ynh_remove_app_dependencies
#=================================================
@ -61,7 +61,7 @@ ynh_secure_remove "$final_path"
#=================================================
# Remove the dedicated nginx config
ynh_remove_nginx_config
#ynh_remove_nginx_config
#=================================================
# REMOVE LOGROTATE CONFIGURATION
@ -87,13 +87,13 @@ fi
#=================================================
# Remove a cron file
ynh_secure_remove "/etc/cron.d/$app"
#ynh_secure_remove "/etc/cron.d/$app"
# Remove a directory securely
ynh_secure_remove "/etc/$app/"
#ynh_secure_remove "/etc/$app/"
# Remove the log files
ynh_secure_remove "/var/log/$app/"
#ynh_secure_remove "/var/log/$app/"
#=================================================
# GENERIC FINALIZATION