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
|
|
|
#=================================================
|
2023-01-08 14:46:10 +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
|
2023-01-10 13:09:57 +01:00
|
|
|
rp_validate_proxy_path
|
|
|
|
|
|
|
|
# Validate assets_path
|
|
|
|
rp_validate_assets_path
|
|
|
|
|
2023-11-25 19:16:11 +01:00
|
|
|
# Special case for "/" path
|
2023-01-10 13:09:57 +01:00
|
|
|
rp_handle_webroot
|
2019-09-14 19:58:58 +02:00
|
|
|
|
2023-01-08 14:33:31 +01:00
|
|
|
# Configure nginx
|
2023-01-08 15:49:37 +01:00
|
|
|
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
|