Skip to content

Instantly share code, notes, and snippets.

@dularion
Last active October 26, 2020 20:09
Show Gist options
  • Save dularion/1da0f3bc74315d914945b49923c7db55 to your computer and use it in GitHub Desktop.
Save dularion/1da0f3bc74315d914945b49923c7db55 to your computer and use it in GitHub Desktop.
server {
server_name next.relaxx.center;
client_max_body_size 128g; # allows larger files (like videos) to be uploaded.
root /data/kcenter/kcenter-html;
# location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# websocket start
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_read_timeout 86400;
# websocket end
# }
location / {
try_files $uri /index.html?$args;
}
location /landing {
try_files $uri /landing.html?$args;
}
location /jobAdvisor {
try_files $uri /job-advisor.html?$args;
}
location /applicationForm {
try_files $uri /application-form.html?$args;
}
location /maps {
proxy_pass https://maps.googleapis.com;
}
location /api {
proxy_pass http://127.0.0.1:8080;
}
location /stomp {
proxy_pass http://127.0.0.1:8080;
}
location /info {
proxy_pass http://127.0.0.1:8080;
}
location /health {
proxy_pass http://127.0.0.1:8080;
}
location /doAction {
proxy_pass http://127.0.0.1:8080;
}
location /action {
proxy_pass http://127.0.0.1:8080;
}
location /auth {
proxy_pass http://127.0.0.1:8080;
}
location /logoff {
proxy_pass http://127.0.0.1:8080;
}
location /freigabe {
proxy_pass http://127.0.0.1:8080;
}
location /public {
proxy_pass http://127.0.0.1:8080;
}
location /seiten {
proxy_pass http://127.0.0.1:8080;
}
location /resource {
proxy_pass http://127.0.0.1:8080;
}
listen [::]:443 ssl ipv6only=on; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/next.relaxx.center/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/next.relaxx.center/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = next.relaxx.center) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
listen [::]:80;
server_name next.relaxx.center;
return 404; # managed by Certbot
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment