hello everyone
This commit is contained in:
nabijonovdavronbek619@gmail.com
2025-12-25 18:22:04 +05:00
3 changed files with 4 additions and 4 deletions

View File

@@ -24,18 +24,17 @@ services:
web: web:
networks: networks:
- portfolio - portfolio
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

View File

@@ -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",
] ]

View File

@@ -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;