mirror of
https://github.com/YunoHost-Apps/weblate_ynh.git
synced 2024-10-01 13:35:04 +02:00
Upgrade to 3.1.1
This commit is contained in:
parent
93253fb1c8
commit
84c2ceb7a8
3 changed files with 26 additions and 13 deletions
|
@ -27,7 +27,7 @@ from logging.handlers import SysLogHandler
|
||||||
# Django settings for Weblate project.
|
# Django settings for Weblate project.
|
||||||
#
|
#
|
||||||
|
|
||||||
DEBUG = False
|
DEBUG = FALSE
|
||||||
|
|
||||||
ADMINS = (
|
ADMINS = (
|
||||||
('__ADMIN__', '__ADMINMAIL__'),
|
('__ADMIN__', '__ADMINMAIL__'),
|
||||||
|
@ -359,7 +359,6 @@ INSTALLED_APPS = (
|
||||||
'weblate.lang',
|
'weblate.lang',
|
||||||
'weblate.langdata',
|
'weblate.langdata',
|
||||||
'weblate.memory',
|
'weblate.memory',
|
||||||
'weblate.permissions',
|
|
||||||
'weblate.screenshots',
|
'weblate.screenshots',
|
||||||
'weblate.accounts',
|
'weblate.accounts',
|
||||||
'weblate.utils',
|
'weblate.utils',
|
||||||
|
@ -575,9 +574,21 @@ CSRF_COOKIE_SECURE = ENABLE_HTTPS
|
||||||
# Store CSRF token in session (since Django 1.11)
|
# Store CSRF token in session (since Django 1.11)
|
||||||
CSRF_USE_SESSIONS = True
|
CSRF_USE_SESSIONS = True
|
||||||
SESSION_COOKIE_SECURE = ENABLE_HTTPS
|
SESSION_COOKIE_SECURE = ENABLE_HTTPS
|
||||||
|
# SSL redirect
|
||||||
|
SECURE_SSL_REDIRECT = ENABLE_HTTPS
|
||||||
# Session cookie age (in seconds)
|
# Session cookie age (in seconds)
|
||||||
SESSION_COOKIE_AGE = 1209600
|
SESSION_COOKIE_AGE = 1209600
|
||||||
|
|
||||||
|
# Some security headers
|
||||||
|
SECURE_BROWSER_XSS_FILTER = True
|
||||||
|
X_FRAME_OPTIONS = 'DENY'
|
||||||
|
SECURE_CONTENT_TYPE_NOSNIFF = True
|
||||||
|
|
||||||
|
# Optionally enable HSTS
|
||||||
|
SECURE_HSTS_SECONDS = 0
|
||||||
|
SECURE_HSTS_PRELOAD = False
|
||||||
|
SECURE_HSTS_INCLUDE_SUBDOMAINS = False
|
||||||
|
|
||||||
# URL of login
|
# URL of login
|
||||||
LOGIN_URL = '{0}/accounts/login/'.format(URL_PREFIX)
|
LOGIN_URL = '{0}/accounts/login/'.format(URL_PREFIX)
|
||||||
|
|
||||||
|
@ -742,15 +753,17 @@ REST_FRAMEWORK = {
|
||||||
|
|
||||||
# In such case you will want to include some of the exceptions
|
# In such case you will want to include some of the exceptions
|
||||||
# LOGIN_REQUIRED_URLS_EXCEPTIONS = (
|
# LOGIN_REQUIRED_URLS_EXCEPTIONS = (
|
||||||
# r'/accounts/(.*)$', # Required for login
|
# r'/accounts/(.*)$', # Required for login
|
||||||
# r'/static/(.*)$', # Required for development mode
|
# r'/admin/login/(.*)$', # Required for admin login
|
||||||
# r'/widgets/(.*)$', # Allowing public access to widgets
|
# r'/static/(.*)$', # Required for development mode
|
||||||
# r'/data/(.*)$', # Allowing public access to data exports
|
# r'/widgets/(.*)$', # Allowing public access to widgets
|
||||||
# r'/hooks/(.*)$', # Allowing public access to notification hooks
|
# r'/data/(.*)$', # Allowing public access to data exports
|
||||||
# r'/api/(.*)$', # Allowing access to API
|
# r'/hooks/(.*)$', # Allowing public access to notification hooks
|
||||||
# r'/js/i18n/$', # Javascript localization
|
# r'/healthz/$', # Allowing public access to health check
|
||||||
# r'/contact/$', # Optional for contact form
|
# r'/api/(.*)$', # Allowing access to API
|
||||||
# r'/legal/(.*)$', # Optional for legal app
|
# r'/js/i18n/$', # Javascript localization
|
||||||
|
# r'/contact/$', # Optional for contact form
|
||||||
|
# r'/legal/(.*)$', # Optional for legal app
|
||||||
# )
|
# )
|
||||||
|
|
||||||
# Force sane test runner
|
# Force sane test runner
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
"description": {
|
"description": {
|
||||||
"en": "A translation platform using Git and Python"
|
"en": "A translation platform using Git and Python"
|
||||||
},
|
},
|
||||||
"version": "3.0.1~ynh2",
|
"version": "3.1.1~ynh2",
|
||||||
"url": "https://weblate.org",
|
"url": "https://weblate.org",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
current_version="3.0.1"
|
current_version="3.1.1"
|
||||||
|
|
||||||
ynh_check_global_uwsgi_config () {
|
ynh_check_global_uwsgi_config () {
|
||||||
uwsgi --version || ynh_die "You need to add uwsgi (and appropriate plugin) as a dependency"
|
uwsgi --version || ynh_die "You need to add uwsgi (and appropriate plugin) as a dependency"
|
||||||
|
|
Loading…
Reference in a new issue