Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
VT2 Видеотехнологии
Onvif proxy
Commits
797c8dc6
Commit
797c8dc6
authored
2 years ago
by
Boyarskiy Andrew
Browse files
Options
Download
Patches
Plain Diff
Correcting mistakes to make a working sample
parent
ab98e253
master
argparse
dev
flask
flask-docker
1 merge request
!1
Correcting mistakes, support of ew cameras added
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Dockerfile
+2
-2
Dockerfile
django-app/Onvif_proxy/settings.py
+2
-2
django-app/Onvif_proxy/settings.py
django-app/requirements.txt
+1
-0
django-app/requirements.txt
docker-compose.yml
+2
-2
docker-compose.yml
with
7 additions
and
6 deletions
+7
-6
Dockerfile
+
2
−
2
View file @
797c8dc6
...
...
@@ -2,7 +2,7 @@
FROM
python:3
ENV
PYTHONDONTWRITEBYTECODE=1
ENV
PYTHONUNBUFFERED=1
COPY
onvif-proxy onvif-proxy
WORKDIR
onvif-proxy
COPY
django-app django-app
WORKDIR
django-app
RUN
pip
install
-r
requirements.txt
RUN
ls
This diff is collapsed.
Click to expand it.
django-app/Onvif_proxy/settings.py
+
2
−
2
View file @
797c8dc6
...
...
@@ -26,9 +26,9 @@ sys.path.insert(0, os.path.join(PROJECT_ROOT, 'apps'))
SECRET_KEY
=
'django-insecure-h1!zyj^2&)tqp$21xsks2*e5ckd@o-@xv(a02$d=6waw$i0_94'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG
=
Fals
e
DEBUG
=
Tru
e
ALLOWED_HOSTS
=
[
'
*
'
]
ALLOWED_HOSTS
=
[
'
0:0:0:0'
,
'172.18.191.31
'
]
# Application definition
...
...
This diff is collapsed.
Click to expand it.
django-app/requirements.txt
+
1
−
0
View file @
797c8dc6
Django>=4.0
requests==2.28.1
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
2
−
2
View file @
797c8dc6
version
:
"
3.
9
"
version
:
"
3.
3
"
services
:
onvif-proxy
:
build
:
.
command
:
python ./manage.py runserver
8000
command
:
python ./manage.py runserver
0.0.0.0:
8000
# volumes:
# - onvif-proxy:/onvif-proxy
ports
:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets