1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2024-09-21 04:23:00 +02:00

Proper nginx configuration

Deploy the nginx configuration needed to have patchwork working.
This commit is contained in:
Giancarlo Razzolini 2017-06-27 11:07:07 -03:00
parent f261e958ee
commit a6ae45573a
No known key found for this signature in database
GPG Key ID: F22FB1D78A77AEAB

View File

@ -1,3 +1,7 @@
upstream patchwork {
server unix:///run/uwsgi/patchwork.sock;
}
server {
listen 80;
listen [::]:80;
@ -25,14 +29,13 @@ server {
ssl_certificate_key /etc/letsencrypt/live/{{ patchwork_domain }}/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/{{ patchwork_domain }}/chain.pem;
error_page 503 /503.html;
location / {
return 503;
location /static {
alias {{ patchwork_dir }}/htdocs/static;
}
location = /503.html {
root {{ patchwork_dir }};
location / {
include uwsgi_params;
uwsgi_pass patchwork;
}
}