Logo
Explore Help
Sign In
intercal/interchan
1
0
Fork 0
You've already forked interchan
Code Issues Pull Requests Releases Wiki Activity
Files
d4cef8d55239789e549f0e31419d718119d4916c
interchan/nginx.conf

21 lines
422 B
Nginx Configuration File
Raw Normal View History

Add files necessary for production deployment * Dockerfile, docker-compose template * nginx config * uwsgi config * wait-for-postgres script * requirements.txt * Some other stuff Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-07-18 17:04:37 -07:00
server {
listen 80;
server_name _;
location /static {
root /usr/share/nginx/html;
}
location /media {
root /usr/share/nginx/html;
}
location / {
include uwsgi_params;
uwsgi_pass app:3031;
Add some forwarding options to nginx and some log stuff to uwsgi * nginx needs to add X-Forwarded-For and REMOTE_ADDR headers to get the IP address properly * uwsgi now logs 400 errors and adds the REMOTE_ADDR to the log file Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-07-18 18:31:41 -07:00
uwsgi_param HTTP_X-Forwarded-For $proxy_add_x_forwarded_for;
uwsgi_param REMOTE_ADDR $proxy_add_x_forwarded_for;
Add client_max_body_size to nginx conf Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-07-18 19:17:42 -07:00
client_max_body_size 26M;
Add files necessary for production deployment * Dockerfile, docker-compose template * nginx config * uwsgi config * wait-for-postgres script * requirements.txt * Some other stuff Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-07-18 17:04:37 -07:00
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 61ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API