A Democratic Social Network. Currently available at https://democraticnet.de The Test Server is available at https://test.democraticnet.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
DemNet/nginx.conf

76 lines
1.3 KiB

events {}
http {
client_max_body_size 2m;
types {
text/html html htm shtml;
text/css css;
application/x-javascript js;
application/pdf pdf;
application/zip zip;
application/x-tar tar;
application/gzip gz;
video/mp4 mpg4 mp4;
application/ogg ogg;
video/webm webm;
image/gif gif;
image/jpeg jpeg jpg;
image/png png;
text/plain txt;
}
upstream app {
server app:8888;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
client_max_body_size 0;
server_name $hostname;
ssl_certificate /cert.pem;
ssl_certificate_key /privkey.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
gzip on;
gzip_types "*";
location /static/ {
root /;
}
location /files/ {
mp4;
default_type text/plain;
root /;
}
location /help/ {
root /;
}
location = /favicon.ico {
alias /static/favicon.ico;
}
location / {
proxy_pass http://app;
proxy_set_header Host $http_host;
proxy_redirect off;
}
}
server {
listen 80;
listen [::]:80;
return 301 https://$host$request_uri;
}
}