1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/weblate_ynh.git synced 2024-10-01 13:35:04 +02:00

added pathurl in settings, and corrected DATA_DIR in nginx

This commit is contained in:
Jean-Baptiste Holcroft 2017-09-15 10:58:04 +02:00
parent fc4fab842d
commit 933076f8be
3 changed files with 6 additions and 6 deletions

View file

@ -16,24 +16,24 @@ location __PATH__ {
location __PATH__/favicon.ico {
# DATA_DIR/static/favicon.ico
alias __FINALPATH__/static/favicon.ico;
alias __FINALPATH__/data/static/favicon.ico;
expires 30d;
}
location __PATH__/robots.txt {
# DATA_DIR/static/robots.txt
alias __FINALPATH__/static/robots.txt;
alias __FINALPATH__/data/static/robots.txt;
expires 30d;
}
location __PATH__/static {
# DATA_DIR/static/
alias __FINALPATH__/static/;
alias __FINALPATH__/data/static/;
expires 30d;
}
location __PATH__/media {
# DATA_DIR/media/
alias __FINALPATH__/media/;
alias __FINALPATH__/data/media/;
expires 30d;
}

View file

@ -56,7 +56,6 @@ DATABASES = {
# If your server supports it, see Unicode issues above
'charset': 'utf8mb4',
}
}
}
@ -133,7 +132,7 @@ USE_L10N = True
USE_TZ = True
# URL prefix to use, please see documentation for more details
URL_PREFIX = ''
URL_PREFIX = '__PATHURL__/'
# Absolute filesystem path to the directory that will hold user-uploaded files.
# Example: "/home/media/media.lawrence.com/media/"

View file

@ -151,6 +151,7 @@ ynh_replace_string "__ADMIN__" "$admin" $final_path/weblate/settings.py
ynh_replace_string "__ADMINMAIL__" "$admin_mail" $final_path/weblate/settings.py
ynh_replace_string "__DOMAIN__" "$domain" $final_path/weblate/settings.py
ynh_replace_string "__KEY__" "$key" $final_path/weblate/settings.py
ynh_replace_string "__PATHURL__" "$pathurl" $final_path/weblate/settings.py
#=================================================
# PIP INSTALLATION