mirror of
https://github.com/KevinMidboe/nginx.git
synced 2025-12-08 20:38:51 +00:00
All updated & new site configs
This commit is contained in:
58
sites-available/brewpi.conf
Normal file
58
sites-available/brewpi.conf
Normal file
@@ -0,0 +1,58 @@
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
|
||||
server_name brew.schleppe.cloud;
|
||||
|
||||
gzip on;
|
||||
gzip_types application/javascript;
|
||||
gzip_min_length 1000;
|
||||
gzip_static on;
|
||||
|
||||
|
||||
location / {
|
||||
proxy_http_version 1.1;
|
||||
add_header 'Access-Control-Allow-Origin' 'brewpi.schleppe.cloud beer.schleppe.cloud';
|
||||
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
||||
add_header 'Access-Control-Allow-Headers' 'Content-Type';
|
||||
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
proxy_set_header Host $host;
|
||||
resolver 10.0.0.72;
|
||||
proxy_pass http://brewpi.schleppe:5000;
|
||||
}
|
||||
ssl_certificate /etc/letsencrypt/live/brew.schleppe.cloud/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/brew.schleppe.cloud/privkey.pem; # managed by Certbot
|
||||
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
|
||||
server_name beer.schleppe.cloud;
|
||||
|
||||
gzip on;
|
||||
gzip_types application/javascript;
|
||||
gzip_min_length 1000;
|
||||
gzip_static on;
|
||||
|
||||
|
||||
location / {
|
||||
proxy_http_version 1.1;
|
||||
add_header 'Access-Control-Allow-Origin' 'brewpi.schleppe.cloud beer.schleppe.cloud';
|
||||
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
||||
add_header 'Access-Control-Allow-Headers' 'Content-Type';
|
||||
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
proxy_set_header Host $host;
|
||||
resolver 10.0.0.72;
|
||||
proxy_pass http://brewpi.schleppe:5000;
|
||||
}
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/beer.schleppe.cloud/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/beer.schleppe.cloud/privkey.pem; # managed by Certbot
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user