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-11-18 18:49:41 +01:00
parent fe4c3af425
commit a40d5b8370
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 1 additions and 6 deletions

View file

@ -1,11 +1,6 @@
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ { location __PATH__/ {
# Force usage of https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
proxy_pass http://127.0.0.1:__PORT____PATH__/; proxy_pass http://127.0.0.1:__PORT____PATH__/;
proxy_redirect off; proxy_redirect off;
proxy_set_header Host $host; proxy_set_header Host $host;

View file

@ -53,7 +53,7 @@ ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
# If architecture doesn't exist, create it # If architecture doesn't exist, create it
if [ -z "$architecture" ]; then if [ -z "$architecture" ]; then
architecture="dpkg --print-architecture" architecture=$YNH_ARCH
architecture=$(ynh_app_setting_get --app=$app --key=architecture) architecture=$(ynh_app_setting_get --app=$app --key=architecture)
fi fi