reverseproxy_ynh/scripts/install

35 lines
851 B
Text
Raw Normal View History

2016-06-20 23:43:51 +02:00
#!/bin/bash
2018-05-26 10:27:01 +02:00
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
2016-06-20 23:43:51 +02:00
2023-01-08 14:33:31 +01:00
source _common.sh
2018-05-26 10:27:01 +02:00
source /usr/share/yunohost/helpers
2023-01-08 14:33:31 +01:00
#=================================================
# REVERSEPROXY_YNH
2023-01-08 14:33:31 +01:00
#=================================================
2016-06-20 23:43:51 +02:00
2023-01-08 14:33:31 +01:00
# Validate reverse proxy destination
rp_validate_proxy_path
# Validate assets_path
rp_validate_assets_path
2023-11-25 19:16:11 +01:00
# Special case for "/" path
rp_handle_webroot
2023-01-08 14:33:31 +01:00
# Configure nginx
ynh_script_progression --message="Configuring NGINX web server..." --weight=1
2023-11-25 19:20:44 +01:00
ynh_add_nginx_config
2021-01-23 15:21:17 +01:00
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Installation of $app completed" --last