Commit e456fcb8 authored by BERJON Matthieu's avatar BERJON Matthieu
Browse files

Add Nginx configuration file

In order to mimic the Rails container using Django, I installed a Nginx
reverse proxy that communicate directly with the Django application
(through Gunicorn or directly).

The current configuration is a copy of the Rails configuration except
the listening port.

Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <>
parent 2925d93e
upstream allgo
server fail_timeout=0;
# server unix:/run/rails.sock fail_timeout=0;
listen 8080;
client_max_body_size 1G;
client_body_in_file_only clean;
client_body_buffer_size 32K;
sendfile on;
send_timeout 300s;
keepalive_timeout 5;
root /opt/allgo/public/;
try_files $uri/index.html $uri.html $uri @allgo;
location @allgo
# the 'Host' header must be forwarded as-is because turbolinks needs it to
# work properly
proxy_set_header Host $http_host;
# however we do not forward 'X-Forwarded-Proto' because this would
# overwrite the value set by dev-nginx
# proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
proxy_pass http://allgo;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment