forked from meine-stadt-transparent/meine-stadt-transparent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
39 lines (33 loc) · 1.01 KB
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
server {
listen 80;
listen [::]:80;
server_name changeme.tld;
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name changeme.tld;
ssl_certificate /etc/letsencrypt/live/leipzig.schuetze.link/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/leipzig.schuetze.link/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
# The actual application
location / {
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:8000;
}
# Static assets such as css and js
location /static {
rewrite ^/static/(.*) /$1 break;
root /var/www/meine-stadt-transparent-static;
}
# Files stored by minio
location /file-content/ {
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:9000;
rewrite /file-content/(.*) /meine-stadt-transparent-files/$1 break;
}
}