1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/miniflux_ynh.git synced 2024-09-03 19:45:58 +02:00
This commit is contained in:
ericgaspar 2021-05-21 14:57:21 +02:00
parent 3d166c322e
commit fde426664f
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 12 additions and 1 deletions

View file

@ -6,7 +6,7 @@ location __PATH__/ {
rewrite ^ https://$server_name$request_uri? permanent;
}
proxy_pass http://127.0.0.1:__PORT__/;
proxy_pass http://127.0.0.1:__PORT____PATH__/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;

View file

@ -101,6 +101,17 @@ then
ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.conf"
fi
#=================================================
# ADD A CONFIGURATION
#=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1
domain="$new_domain"
path="$new_path"
ynh_add_config --template="../conf/miniflux.conf" --destination="$final_path/$app.conf"
chmod 600 "$final_path/$app.conf"
#=================================================
# GENERIC FINALISATION
#=================================================