Browse Source

Update entrypoint.sh and dovodi.conf for improved configuration

- Removed commented-out pip commands from entrypoint.sh for clarity.
- Enabled the /agent/ location block in dovodi.conf to properly configure proxy settings for the application.
master
Mohsen Taba 3 months ago
parent
commit
ed361b2b96
  1. 3
      entrypoint.sh
  2. 14
      nginx/dovodi.conf

3
entrypoint.sh

@ -5,9 +5,6 @@ python manage.py migrate
# python manage.py seed_images
python manage.py collectstatic --noinput
# pip uninstall jwt
# pip uninstall PyJWT
# pip install PyJWT
# Seed Russian data (only runs once, skips if data exists)
# python manage.py seed_corrections
# python manage.py seed_russian_data

14
nginx/dovodi.conf

@ -17,13 +17,13 @@ server {
# Add this inside the 'server' block of the existing config
# location /agent/ {
# proxy_pass http://88.99.212.243:8098;
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header X-Forwarded-Proto $scheme;
# }
location /agent/ {
proxy_pass http://88.99.212.243:8098;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
# با prefix زبانی

Loading…
Cancel
Save