Merge branch 'main' of https://gitea.felixits.uz/Davron/firma_back
hello everyone
This commit is contained in:
@@ -27,15 +27,14 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: ./docker/Dockerfile.web
|
dockerfile: ./docker/Dockerfile.web
|
||||||
restart: always
|
|
||||||
command: sh resources/scripts/entrypoint.sh
|
command: sh resources/scripts/entrypoint.sh
|
||||||
environment:
|
environment:
|
||||||
- PYTHONPYCACHEPREFIX=/var/cache/pycache
|
- PYTHONPYCACHEPREFIX=/var/cache/pycache
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- './:/code'
|
- './:/code'
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
restart: always
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: postgres:16
|
image: postgres:16
|
||||||
|
|||||||
@@ -165,5 +165,6 @@ CSRF_TRUSTED_ORIGINS = [
|
|||||||
"https://serenmebel.uz",
|
"https://serenmebel.uz",
|
||||||
"https://www.serenmebel.uz",
|
"https://www.serenmebel.uz",
|
||||||
"https://api.serenmebel.uz",
|
"https://api.serenmebel.uz",
|
||||||
|
"https://admin.promtechno.uz",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ http {
|
|||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://web:8001;
|
proxy_pass http://web:8000;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto https;
|
proxy_set_header X-Forwarded-Proto https;
|
||||||
|
|||||||
Reference in New Issue
Block a user