1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/miniflux_ynh.git synced 2024-09-03 19:45:58 +02:00

Merge pull request #1 from YunoHost-Apps/testing

Testing
This commit is contained in:
Éric Gaspar 2021-05-21 15:11:27 +02:00 committed by GitHub
commit 041a6edc0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 1 deletions

View file

@ -1,3 +1,4 @@
BASE_URL=http://__DOMAIN____PATH__
LISTEN_ADDR=127.0.0.1:__PORT__
DATABASE_URL=postgres://__DB_NAME__:__DB_PWD__@localhost/__DB_NAME__?sslmode=disable
RUN_MIGRATIONS=1

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
#=================================================

View file

@ -66,6 +66,7 @@ ynh_restore_file --origin_path="$final_path"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chmod +x "$final_path/miniflux"
chown -R $app:www-data "$final_path"
#=================================================