38 lines
696 B
Text
38 lines
696 B
Text
|
server {
|
||
|
listen 443 ssl http2;
|
||
|
listen [::]:443 ssl http2;
|
||
|
server_name boop.icu www.boop.icu;
|
||
|
|
||
|
ssl_certificate /etc/letsencrypt/live/boop.icu/fullchain.pem;
|
||
|
ssl_certificate_key /etc/letsencrypt/live/boop.icu/privkey.pem;
|
||
|
|
||
|
include common/acme.conf;
|
||
|
include common/statuscodes.conf;
|
||
|
include common/ssl.conf;
|
||
|
|
||
|
# Upload size limit
|
||
|
client_max_body_size 256M;
|
||
|
|
||
|
location / {
|
||
|
include uwsgi_params;
|
||
|
uwsgi_pass unix:/opt/boop/boop.icu.sock;
|
||
|
uwsgi_param UWSGI_SCHEME https;
|
||
|
}
|
||
|
|
||
|
location /css {
|
||
|
root /opt/boop/css;
|
||
|
}
|
||
|
|
||
|
location /up {
|
||
|
root /opt/boop;
|
||
|
internal;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
listen 80;
|
||
|
listen [::]:80;
|
||
|
server_name boop.icu www.boop.icu;
|
||
|
return 301 https://boop.icu$request_uri;
|
||
|
}
|