Now with variable key and max body size
This commit is contained in:
@@ -14,7 +14,7 @@ ENV = 'development' # None, 'backup', 'default', 'development', 'production', 't
|
||||
DEBUG = True
|
||||
TESTING = True
|
||||
|
||||
SECRET_KEY = '\x08}\xe1q?\xb2\x16o9\xf1\x1d\xc7\xa8\xfb!\xff' # Generate a new key with: # python -c 'import os; print(os.urandom(16))'
|
||||
SECRET_KEY = os.getenv('AE_APP_CACHE_SECRET_KEY', None) # Generate a new key with: # python -c 'import os; print(os.urandom(16))'
|
||||
|
||||
# SESSION_COOKIE_NAME = 'session'
|
||||
# SESSION_COOKIE_DOMAIN = '.onesky.com'
|
||||
@@ -38,7 +38,7 @@ SESSION_REFRESH_EACH_REQUEST = True
|
||||
# SERVER_NAME = ''
|
||||
|
||||
# UPLOAD_FOLDER = ''
|
||||
MAX_CONTENT_LENGTH = 5120 * 1024 * 1024 # 5 GB
|
||||
# MAX_CONTENT_LENGTH = 5120 * 1024 * 1024 # 5 GB
|
||||
|
||||
SEND_FILE_MAX_AGE_DEFAULT = 3 # default 43200 (in seconds), 1800 = 30 minutes
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ server {
|
||||
access_log /logs/nginx/access_fastapi_gunicorn.log;
|
||||
error_log /logs/nginx/error_fastapi_gunicorn.log;
|
||||
|
||||
client_max_body_size 5120M; #4096M or 4G; 5120M or 5G;
|
||||
client_max_body_size ${OSIT_WEB_MAX_BODY_SIZE}; # 5120M; #4096M or 4G; 5120M or 5G;
|
||||
|
||||
location / {
|
||||
proxy_set_header Host $http_host;
|
||||
@@ -87,7 +87,7 @@ server {
|
||||
# include brotli.conf;
|
||||
# include gzip.conf;
|
||||
|
||||
client_max_body_size 5120M; #4096M or 4G; 5120M or 5G;
|
||||
client_max_body_size ${OSIT_WEB_MAX_BODY_SIZE}; # 5120M; #4096M or 4G; 5120M or 5G;
|
||||
|
||||
location / {
|
||||
proxy_set_header Host $http_host;
|
||||
|
||||
@@ -13,7 +13,7 @@ server {
|
||||
access_log /logs/nginx/access_fastapi_gunicorn.log;
|
||||
error_log /logs/nginx/error_fastapi_gunicorn.log;
|
||||
|
||||
client_max_body_size 5120M; #4096M or 4G; 5120M or 5G;
|
||||
client_max_body_size ${OSIT_WEB_MAX_BODY_SIZE}; # 5120M; #4096M or 4G; 5120M or 5G;
|
||||
|
||||
location / {
|
||||
proxy_set_header Host $http_host;
|
||||
@@ -87,7 +87,7 @@ server {
|
||||
# include brotli.conf;
|
||||
# include gzip.conf;
|
||||
|
||||
client_max_body_size 5120M; #4096M or 4G; 5120M or 5G;
|
||||
client_max_body_size ${OSIT_WEB_MAX_BODY_SIZE}; # 5120M; #4096M or 4G; 5120M or 5G;
|
||||
|
||||
location / {
|
||||
proxy_set_header Host $http_host;
|
||||
|
||||
@@ -31,7 +31,7 @@ server {
|
||||
access_log /logs/nginx/access_flask_gunicorn.log;
|
||||
error_log /logs/nginx/error_flask_gunicorn.log;
|
||||
|
||||
client_max_body_size 5120M; #4096M or 4G; 5120M or 5G;
|
||||
client_max_body_size ${OSIT_WEB_MAX_BODY_SIZE}; # 5120M; #4096M or 4G; 5120M or 5G;
|
||||
|
||||
location / {
|
||||
proxy_set_header Host $http_host;
|
||||
@@ -97,7 +97,7 @@ server {
|
||||
# include brotli.conf;
|
||||
# include gzip.conf;
|
||||
|
||||
client_max_body_size 5120M; #4096M or 4G; 5120M or 5G;
|
||||
client_max_body_size ${OSIT_WEB_MAX_BODY_SIZE}; # 5120M; #4096M or 4G; 5120M or 5G;
|
||||
|
||||
location / {
|
||||
proxy_set_header Host $http_host;
|
||||
|
||||
Reference in New Issue
Block a user