From 463ab3c78445777e9e5746ccf39dbc874f1c929e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 22 Jul 2024 11:15:57 +0200 Subject: [PATCH] subfolder --- conf/dot_env | 7 +------ conf/nginx.conf | 2 +- manifest.toml | 5 +++++ 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/conf/dot_env b/conf/dot_env index 3a00444..f75856b 100644 --- a/conf/dot_env +++ b/conf/dot_env @@ -12,22 +12,17 @@ TANDOOR_PORT=__PORT__ ALLOWED_HOSTS=__DOMAIN__ # random secret key, use for example `base64 /dev/urandom | head -c50` to generate one -# ---------------------------- REQUIRED ------------------------- SECRET_KEY=__SECRETKEY__ -# --------------------------------------------------------------- # your default timezone See https://timezonedb.com/time-zones for a list of timezones TZ=__TIMEZONE__ # add only a database password if you want to run with the default postgres, otherwise change settings accordingly DB_ENGINE=django.db.backends.postgresql -# DB_OPTIONS= {} # e.g. {"sslmode":"require"} to enable ssl POSTGRES_HOST=127.0.0.1 POSTGRES_PORT=5432 POSTGRES_USER=__DB_USER__ -# ---------------------------- REQUIRED ------------------------- POSTGRES_PASSWORD=__DB_PWD__ -# --------------------------------------------------------------- POSTGRES_DB=__DB_NAME__ # the default value for the user preference 'fractions' (enable/disable fraction support) @@ -48,7 +43,7 @@ SHOPPING_MIN_AUTOSYNC_INTERVAL=5 # If base URL is something other than just / (you are serving a subfolder in your proxy for instance http://recipe_app/recipes/) # Be sure to not have a trailing slash: e.g. '/recipes' instead of '/recipes/' -#SCRIPT_NAME=__PATH__/ +SCRIPT_NAME=__PATH__ # If staticfiles are stored at a different location uncomment and change accordingly, MUST END IN / # this is not required if you are just using a subfolder diff --git a/conf/nginx.conf b/conf/nginx.conf index b1dad4b..5749ad3 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -17,7 +17,7 @@ location __PATH__/ { # include conf.d/yunohost_panel.conf.inc; } -location /media/ { +location __PATH__/media/ { alias __INSTALL_DIR__/mediafiles/; } diff --git a/manifest.toml b/manifest.toml index b708da6..481a0eb 100644 --- a/manifest.toml +++ b/manifest.toml @@ -34,6 +34,11 @@ ram.runtime = "1500M" [install.domain] type = "domain" + [install.path] + # this is a generic question - ask strings are automatically handled by YunoHost's core + type = "path" + default = "/recipies" + [install.init_main_permission] type = "group"