Merge branch 'master' into openapi-v3
This commit is contained in:
commit
330219e76f
|
@ -53,11 +53,11 @@ STATIC_ROOT = BASE_DIR + "/static"
|
||||||
STATICFILES_DIRS = [BASE_DIR + "/web"]
|
STATICFILES_DIRS = [BASE_DIR + "/web"]
|
||||||
MEDIA_ROOT = BASE_DIR + "/media"
|
MEDIA_ROOT = BASE_DIR + "/media"
|
||||||
|
|
||||||
SECRET_KEY = CONFIG.y(
|
|
||||||
"secret_key", "9$@r!d^1^jrn#fk#1#@ks#9&i$^s#1)_13%$rwjrhd=e8jfi_s"
|
|
||||||
) # noqa Debug
|
|
||||||
|
|
||||||
DEBUG = CONFIG.y_bool("debug")
|
DEBUG = CONFIG.y_bool("debug")
|
||||||
|
SECRET_KEY = CONFIG.y("secret_key")
|
||||||
|
if DEBUG:
|
||||||
|
SECRET_KEY = "9$@r!d^1^jrn#fk#1#@ks#9&i$^s#1)_13%$rwjrhd=e8jfi_s" # noqa Debug # nosec
|
||||||
|
|
||||||
INTERNAL_IPS = ["127.0.0.1"]
|
INTERNAL_IPS = ["127.0.0.1"]
|
||||||
ALLOWED_HOSTS = ["*"]
|
ALLOWED_HOSTS = ["*"]
|
||||||
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
|
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
|
||||||
|
|
|
@ -43,8 +43,10 @@ import TabItem from '@theme/TabItem';
|
||||||
```
|
```
|
||||||
location /akprox {
|
location /akprox {
|
||||||
proxy_pass http://*ip of your outpost*:4180;
|
proxy_pass http://*ip of your outpost*:4180;
|
||||||
proxy_set_header X-Forwarded-Host $http_host;
|
|
||||||
error_page 401 = @akprox_signin;
|
error_page 401 = @akprox_signin;
|
||||||
|
proxy_set_header X-Forwarded-Host $http_host;
|
||||||
|
auth_request_set $auth_cookie $upstream_http_set_cookie;
|
||||||
|
add_header Set-Cookie $auth_cookie;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @akprox_signin {
|
location @akprox_signin {
|
||||||
|
|
Reference in New Issue