Webapp zur Darstellung von GREEN SPIDER Daten zu Websites
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.
 
 
 
 
 

58 lines
1.2 KiB

user nginx;
worker_processes 1;
error_log stderr warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
server {
listen *:8000;
rewrite ^/$ https://green-spider.netzbegruenung.de/ redirect;
}
server {
listen *:443;
ssl on;
ssl_certificate /etc/letsencrypt/live/green-spider.netzbegruenung.de/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/green-spider.netzbegruenung.de/privkey.pem;
root /usr/share/nginx/html;
# siteicons, css, js never change
location /siteicons/ {
expires 100d;
}
location /static/ {
expires 100d;
}
location / {
try_files $uri $uri/ /index.html;
}
}
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /dev/stdout main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
include /etc/nginx/conf.d/*.conf;
}