2016-06-20 23:43:51 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
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
|
2024-08-31 02:57:32 +02:00
|
|
|
ynh_script_progression "Configuring NGINX web server..."
|
2023-01-08 15:49:37 +01:00
|
|
|
|
2024-08-31 02:57:32 +02:00
|
|
|
ynh_config_add_nginx
|
2021-01-23 15:21:17 +01:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2024-08-31 02:57:32 +02:00
|
|
|
ynh_script_progression "Installation of $app completed"
|