change port in producution

This commit is contained in:
root 2022-06-25 00:26:52 +02:00
parent 3b0a63aae8
commit 48c6d51c4d
12 changed files with 7 additions and 2 deletions

View File

@ -82,11 +82,12 @@ MIDDLEWARE = [
# CORS
CORS_ALLOW_ALL_ORIGINS=True
CORS_ALLOWED_ORIGINS = ['http://localhost:8000', 'http://141.136.42.178:8001', 'http://141.136.42.178:8002', 'http://141.136.42.178:80', 'http://lilandco42.com',
'http://127.0.0.1:8002', 'http://localhost:8001', 'http://192.168.1.18:8000']
CSRF_TRUSTED_ORIGINS = ['http://localhost:8000', 'http://141.136.42.178:8001', 'http://141.136.42.178:8002', 'http://141.136.42.178:80', 'http://lilandco42.com',
'http://127.0.0.1:8002', 'http://localhost:8001', 'http://192.168.1.18:8000']
CORS_ALLOW_ALL_ORIGINS=True
CORS_ALLOW_HEADERS = [
"accept",
"accept-encoding",
@ -216,6 +217,7 @@ ACCOUNT_UNIQUE_USERNAME = True
OLD_PASSWORD_FIELD_ENABLED = False
LOGOUT_ON_PASSWORD_CHANGE = False
LOGIN_URL = '/login'
REST_FRAMEWORK = {
'DATETIME_FORMAT': "%m/%d/%Y %I:%M%P", 'DEFAULT_AUTHENTICATION_CLASSES': ['rest_framework.authentication.TokenAuthentication',
@ -250,3 +252,6 @@ LOGGING = {
},
},
}

Binary file not shown.

View File

@ -1,3 +1,3 @@
NEXT_PUBLIC_HOSTNAME=141.136.42.178
PORT=8000
PORT=80
NEXT_PUBLIC_HOST=http://$NEXT_PUBLIC_HOSTNAME:$PORT