playbooks/wordpress/files/nginx.conf.j2

21 lines
496 B
Django/Jinja

server {
listen 80;
server_name {{ http_host }};
# Allow large attachments
client_max_body_size 128M;
location / {
proxy_read_timeout 90;
proxy_connect_timeout 90;
proxy_redirect off;
proxy_pass http://localhost:{{ web_port }};
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
}
}