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:
parent
fc4fab842d
commit
933076f8be
3 changed files with 6 additions and 6 deletions
|
@ -16,24 +16,24 @@ location __PATH__ {
|
||||||
|
|
||||||
location __PATH__/favicon.ico {
|
location __PATH__/favicon.ico {
|
||||||
# DATA_DIR/static/favicon.ico
|
# DATA_DIR/static/favicon.ico
|
||||||
alias __FINALPATH__/static/favicon.ico;
|
alias __FINALPATH__/data/static/favicon.ico;
|
||||||
expires 30d;
|
expires 30d;
|
||||||
}
|
}
|
||||||
|
|
||||||
location __PATH__/robots.txt {
|
location __PATH__/robots.txt {
|
||||||
# DATA_DIR/static/robots.txt
|
# DATA_DIR/static/robots.txt
|
||||||
alias __FINALPATH__/static/robots.txt;
|
alias __FINALPATH__/data/static/robots.txt;
|
||||||
expires 30d;
|
expires 30d;
|
||||||
}
|
}
|
||||||
|
|
||||||
location __PATH__/static {
|
location __PATH__/static {
|
||||||
# DATA_DIR/static/
|
# DATA_DIR/static/
|
||||||
alias __FINALPATH__/static/;
|
alias __FINALPATH__/data/static/;
|
||||||
expires 30d;
|
expires 30d;
|
||||||
}
|
}
|
||||||
|
|
||||||
location __PATH__/media {
|
location __PATH__/media {
|
||||||
# DATA_DIR/media/
|
# DATA_DIR/media/
|
||||||
alias __FINALPATH__/media/;
|
alias __FINALPATH__/data/media/;
|
||||||
expires 30d;
|
expires 30d;
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,6 @@ DATABASES = {
|
||||||
# If your server supports it, see Unicode issues above
|
# If your server supports it, see Unicode issues above
|
||||||
'charset': 'utf8mb4',
|
'charset': 'utf8mb4',
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -133,7 +132,7 @@ USE_L10N = True
|
||||||
USE_TZ = True
|
USE_TZ = True
|
||||||
|
|
||||||
# URL prefix to use, please see documentation for more details
|
# 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.
|
# Absolute filesystem path to the directory that will hold user-uploaded files.
|
||||||
# Example: "/home/media/media.lawrence.com/media/"
|
# Example: "/home/media/media.lawrence.com/media/"
|
||||||
|
|
|
@ -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 "__ADMINMAIL__" "$admin_mail" $final_path/weblate/settings.py
|
||||||
ynh_replace_string "__DOMAIN__" "$domain" $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 "__KEY__" "$key" $final_path/weblate/settings.py
|
||||||
|
ynh_replace_string "__PATHURL__" "$pathurl" $final_path/weblate/settings.py
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PIP INSTALLATION
|
# PIP INSTALLATION
|
||||||
|
|
Loading…
Reference in a new issue