Skip to content

Instantly share code, notes, and snippets.

@dularion
Created October 26, 2020 20:08
Show Gist options
  • Save dularion/c548f91e6a0a72d78b2d1a548d117875 to your computer and use it in GitHub Desktop.
Save dularion/c548f91e6a0a72d78b2d1a548d117875 to your computer and use it in GitHub Desktop.
server {
server_name kundenbereich.next.relaxx.center;
root /data/kcenter/relaxx-dialog;
location / {
try_files $uri /index.html?$args;
}
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 /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; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/kundenbereich.next.relaxx.center/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/kundenbereich.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 {
# listen 443 ssl http2;
# ssl_certificate /etc/letsencrypt/live/tesddtsite.com/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/testsite.com/privkey.pem;
# ssl_stapling on;
# server_name testsite.com;
# root /var/www/testsite.com;
#
# location / {
# try_files $uri /index.php?$args;
# }
# location ~ \.php$ {
# try_files $uri =404;
# fastcgi_split_path_info ^(.+\.php)(/.+)$;
# fastcgi_pass unix:/run/php/php7.0-fpm.sock;
# fastcgi_index index.php;
# include fastcgi_params;
# }
#}
server {
if ($host = kundenbereich.next.relaxx.center) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
listen [::]:80;
server_name kundenbereich.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