mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 10:51:36 -04:00
46 lines
758 B
Text
46 lines
758 B
Text
events {
|
|
|
|
}
|
|
|
|
|
|
http {
|
|
client_max_body_size 0;
|
|
|
|
map $http_upgrade $connection_upgrade {
|
|
default upgrade;
|
|
'' close;
|
|
}
|
|
charset utf-8;
|
|
|
|
include mime.types;
|
|
types {
|
|
# Custom types for ebooks.
|
|
application/x-mobipocket-ebook mobi;
|
|
application/epub+zip epub;
|
|
# Configs
|
|
text/yaml yaml yml;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name _; # Default server for requests without "Host" header
|
|
|
|
location / {
|
|
return 301 https://$host:8443$request_uri;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
proxy_pass_header Host;
|
|
|
|
# Self-signed cert from Dockerfile build.
|
|
ssl_certificate /cert.crt;
|
|
ssl_certificate_key /cert.key;
|
|
|
|
include /etc/nginx/conf.d/*;
|
|
}
|
|
|
|
}
|