v0.0.00.5
This commit is contained in:
parent
7146efe8c6
commit
3cbe01a17d
@ -1,4 +1,4 @@
|
|||||||
SECRET_KEY='django-insecure-dwz6w*m*yl$!))@7v36)u=034$1=41gp9ph5u7!g3x!b0un#)e'
|
SECRET_KEY='django-insecure-dwz6w*m*yl$!))@7v36)u=034$1=41gp9ph5u7!g3x!b0un#)e'
|
||||||
WEBSOCKET_URL='ws://192.168.0.169:8106/ws/stream'
|
WEBSOCKET_URL='ws://192.168.0.169:8106/ws/stream/'
|
||||||
RTSP_URL='rtsp://192.168.1.247:554/rtsp/streaming?channel=01&subtype=A'
|
RTSP_URL='rtsp://192.168.1.247:554/rtsp/streaming?channel=01&subtype=A'
|
||||||
MODEL_PATH='models/colors/detection/v4/med/epochs_60/best.pt'
|
MODEL_PATH='models/colors/detection/v4/med/epochs_60/best.pt'
|
||||||
@ -3,8 +3,8 @@ from django.shortcuts import redirect
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
EXEMPT_URLS = [
|
EXEMPT_URLS = [
|
||||||
re.compile(settings.LOGIN_URL.lstrip('/')), # eg. 'streaming/login/'
|
re.compile(settings.LOGIN_URL.lstrip('/')),
|
||||||
re.compile(r'^admin/login/$'), # админ-логин
|
re.compile(r'^admin/login/$'),
|
||||||
re.compile(r'^streaming/login/$'),
|
re.compile(r'^streaming/login/$'),
|
||||||
re.compile(r'^streaming/$'),
|
re.compile(r'^streaming/$'),
|
||||||
re.compile(r'^static/'),
|
re.compile(r'^static/'),
|
||||||
|
|||||||
@ -31,7 +31,7 @@ SECRET_KEY = os.getenv("SECRET_KEY")
|
|||||||
|
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = False
|
DEBUG = True
|
||||||
|
|
||||||
ALLOWED_HOSTS = ['*']
|
ALLOWED_HOSTS = ['*']
|
||||||
|
|
||||||
@ -87,7 +87,10 @@ TEMPLATES = [
|
|||||||
CSRF_COOKIE_SECURE = False
|
CSRF_COOKIE_SECURE = False
|
||||||
SESSION_COOKIE_SECURE = False
|
SESSION_COOKIE_SECURE = False
|
||||||
|
|
||||||
# CSRF_TRUSTED_ORIGINS = ['http://192.168.0.169']
|
CSRF_TRUSTED_ORIGINS = [
|
||||||
|
'http://192.168.0.169:82',
|
||||||
|
'http://192.168.0.169:8106'
|
||||||
|
]
|
||||||
|
|
||||||
WSGI_APPLICATION = 'app.wsgi.application'
|
WSGI_APPLICATION = 'app.wsgi.application'
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user