Created
June 16, 2026 12:42
-
-
Save Nurlan199206/e4a3ce55256ffe473865db0087987b57 to your computer and use it in GitHub Desktop.
prime-gc-config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 443; | |
| server_name prime-backend.crocos.kz; | |
| server_tokens off; | |
| client_max_body_size 50M; | |
| # ssl_certificate /etc/letsencrypt/live/prime-backend.crocos.kz/fullchain.pem; | |
| # ssl_certificate_key /etc/letsencrypt/live/prime-backend.crocos.kz/privkey.pem; | |
| # include /etc/letsencrypt/options-ssl-nginx.conf; | |
| # ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; | |
| access_log /var/log/nginx/prime_access.log; | |
| error_log /var/log/nginx/prime_error.log; | |
| location / { | |
| proxy_pass http://127.0.0.1:8000; | |
| 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; | |
| proxy_connect_timeout 60s; | |
| proxy_read_timeout 60s; | |
| proxy_send_timeout 60s; | |
| } | |
| location /static/ { | |
| alias /var/www/prime/static/; | |
| expires 30d; | |
| add_header Cache-Control "public, no-transform"; | |
| } | |
| location /media/ { | |
| alias /var/www/prime/media/; | |
| expires 30d; | |
| add_header Cache-Control "public, no-transform"; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment