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:
parent
f261e958ee
commit
a6ae45573a
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user