1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nodebb_ynh.git synced 2024-09-03 19:46:29 +02:00
This commit is contained in:
ericgaspar 2022-01-14 08:41:07 +01:00
parent 0fdc01983c
commit 1d68440f47
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 4 additions and 11 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_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;

View file

@ -6,14 +6,13 @@
"en": "Forum software built for the modern web", "en": "Forum software built for the modern web",
"fr": "Logiciel de forum conçu pour le Web moderne" "fr": "Logiciel de forum conçu pour le Web moderne"
}, },
"version": "1.18.5~ynh1", "version": "1.19.0~ynh1",
"url": "https://nodebb.org", "url": "https://nodebb.org",
"upstream": { "upstream": {
"license": "GPL-3.0", "license": "GPL-3.0",
"website": "https://nodebb.org", "website": "https://nodebb.org",
"demo": "https://try.nodebb.org", "demo": "https://try.nodebb.org",
"admindoc": "https://docs.nodebb.org", "admindoc": "https://docs.nodebb.org",
"userdoc": "https://yunohost.org/apps",
"code": "https://github.com/NodeBB/NodeBB" "code": "https://github.com/NodeBB/NodeBB"
}, },
"license": "GPL-3.0", "license": "GPL-3.0",
@ -22,7 +21,7 @@
"email": "abld@tutanota.com" "email": "abld@tutanota.com"
}, },
"requirements": { "requirements": {
"yunohost": ">> 4.2.4" "yunohost": ">> 4.3.0"
}, },
"multi_instance": true, "multi_instance": true,
"services": [ "services": [

View file

@ -7,7 +7,7 @@
# dependencies used by the app # dependencies used by the app
pkg_dependencies="postgresql" pkg_dependencies="postgresql"
nodejs_version=14 nodejs_version=14
nodebb_version=v1.18.x nodebb_version=v1.19.x
#================================================= #=================================================
# PERSONAL HELPERS # PERSONAL HELPERS

View file

@ -40,8 +40,7 @@ db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)
#================================================= #=================================================
ynh_script_progression --message="Validating restoration parameters..." --weight=1 ynh_script_progression --message="Validating restoration parameters..." --weight=1
test ! -d $final_path \ test ! -d $final_path || ynh_die --message="There is already a directory: $final_path "
|| ynh_die --message="There is already a directory: $final_path "
#================================================= #=================================================
# STANDARD RESTORATION STEPS # STANDARD RESTORATION STEPS