1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pepettes_ynh.git synced 2024-09-03 19:56:35 +02:00

[fix] Install process

This commit is contained in:
ljf 2021-02-19 03:33:06 +01:00
parent 3c835633e8
commit c081dc9f5d
4 changed files with 24 additions and 20 deletions

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/YunoHost/pepettes/archive/v1.0.0.tar.gz
SOURCE_SUM=9d29b72b5e88808c9a95132753d013f3f215c531b0d5bdf67cdbc7a9a29df27b
SOURCE_URL=https://github.com/YunoHost/pepettes/archive/v1.0.1.tar.gz
SOURCE_SUM=9792ed5589d4a55bd619edc7aa61a1a78f34c5a4e7095b2292ac09b66c8b9a58
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true

View file

@ -1,23 +1,18 @@
location __PATH__ {
rewrite ^ $scheme://$server_name$request_uri/? permanent;
}
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {
#if ($scheme = http) {
# rewrite ^ https://$server_name$request_uri? permanent;
#}
try_files $uri @__NAME__;
}
location __PATH__/css {
alias __FINALPATH__/assets/css;
}
location @__NAME__ {
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://unix:__FINALPATH__/sock;
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
location __PATH__/css {
alias __FINALPATH__/assets/css;
}

View file

@ -6,7 +6,7 @@
"en": "A simple donation form with stripe",
"fr": "Un simple formulaire de don avec stripe"
},
"version": "1.0~ynh1",
"version": "1.0.1~ynh1",
"url": "https://github.com/YunoHost/pepettes/",
"license": "MIT",
"maintainer": {
@ -15,7 +15,7 @@
"url": "http://reflexlibre.net"
},
"requirements": {
"yunohost": ">= 4.1.3"
"yunohost": ">= 4.1.2"
},
"multi_instance": true,
"services": [

View file

@ -119,6 +119,13 @@ venv/bin/pip install -r requirements.txt
venv/bin/pip install gunicorn
mkdir -p /var/log/$app
chown -R $app:www-data /var/log/$app
cat <<EOF >> wsgi.py
from server import app
if __name__ == "__main__":
app.run()
EOF
popd
#=================================================
#=================================================
@ -158,7 +165,9 @@ done
# Set permissions to app files
chown -R root: $final_path
chmod go=--- $final_path/settings.py
chown pepettes:root $final_path
chown pepettes:root $final_path/settings.py
chmod o=--- $final_path/settings.py
#=================================================
# INTEGRATE SERVICE IN YUNOHOST