From 64c340fe916b358ceacf5a999c71571e228908aa Mon Sep 17 00:00:00 2001 From: Jules Bertholet Date: Thu, 25 Mar 2021 16:02:52 -0400 Subject: [PATCH] Fix admin interface, make configured user admin --- README.md | 2 +- README_fr.md | 11 ++--------- conf/nginx.conf | 6 +++++- manifest.json | 2 +- scripts/install | 1 + 5 files changed, 10 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index a60994c..8263f69 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ This is the webservice powering the https://gpodder.net website. It can be used ## Configuration -Edit files under `/opt/yunohost/APPDIR/envs/prod` to set environment variables. +Edit files under `/opt/yunohost/APPDIR/envs/prod` to set environment variables. There is an admin interface at `yourdomain.tld/admin` that the admin user can log in to. ## Documentation diff --git a/README_fr.md b/README_fr.md index 6c06247..4c43788 100644 --- a/README_fr.md +++ b/README_fr.md @@ -24,7 +24,7 @@ Ceci est le service derrière https://gpodder.net. Il peut servir pour synchroni ## Configuration -Modifiez les fichiers sous `/opt/yunohost/APPDIR/envs/prod` pour configurer les variables d'environment. +Modifiez les fichiers sous `/opt/yunohost/APPDIR/envs/prod` pour configurer les variables d'environment. Il y a une interface admin `a `votre-domaine.tld/admin` (seulement accessible par l'adminsitrateur). ## Documentation @@ -42,14 +42,7 @@ Modifiez les fichiers sous `/opt/yunohost/APPDIR/envs/prod` pour configurer les ## Limitations -* Limitations connues. - -## Informations additionnelles - -* Autres informations que vous souhaitez ajouter sur cette application. - -**Plus d'informations sur la page de documentation :** -https://yunohost.org/packaging_apps +* Le service d'analyse de flux n'est pas inclu, https://feeds.gpodder.net est utilisé ## Liens diff --git a/conf/nginx.conf b/conf/nginx.conf index cc9f033..f284493 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -49,6 +49,10 @@ location /media/admin { alias __FINALPATH__/venv/lib/python3.7/site-packages/django/contrib/admin/static/admin; } +location /static/admin { + alias __FINALPATH__/venv/lib/python3.7/site-packages/django/contrib/admin/static/admin; +} + location ~ /(favicon.ico|favicon.png|robots.txt|clientconfig.json) { expires 336h; # 2 weeks -} \ No newline at end of file +} diff --git a/manifest.json b/manifest.json index 8465fa0..1841611 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Manage podcast subscriptions, and sync them between apps and devices", "fr": "Gérez vos sousciptions balado, et sychronisez-lez entre vos applis et appareils" }, - "version": "2.11.1~ynh1", + "version": "2.11.1~ynh2", "url": "https://github.com/gpodder/mygpo", "license": "AGPL-3.0-only", "maintainer": { diff --git a/scripts/install b/scripts/install index 534db00..9cbc1d3 100755 --- a/scripts/install +++ b/scripts/install @@ -166,6 +166,7 @@ pushd $final_path || ynh_die source $final_path/venv/bin/activate envdir $env_path python3 $final_path/manage.py makemigrations envdir $env_path python3 $final_path/manage.py migrate + envdir $env_path python3 $final_path/manage.py createsuperuser --username "$admin" --email "$admin_email" --noinput -v 0 deactivate 'dummy_arg' popd || ynh_die