Skip to content

Instantly share code, notes, and snippets.

@mcroteau
Last active January 14, 2022 17:09
Show Gist options
  • Save mcroteau/a18bc27cc396250e499aea2274b3e764 to your computer and use it in GitHub Desktop.
Save mcroteau/a18bc27cc396250e499aea2274b3e764 to your computer and use it in GitHub Desktop.
ssl_certificate /etc/pki/tls/certs/localhost.crt;
ssl_certificate_key /etc/pki/tls/private/localhost.key;
server {
listen 80;
server_name *.example.com;
rewrite ^ https://$host$request_uri? permanent;
}
server {
listen 443 ssl;
server_name wiki.example.com;
ssl on;
location / {
proxy_pass http://server02.example.com:8090;
}
}
server {
listen 443 ssl;
server_name sickbeard.example.com;
ssl on;
location / {
proxy_pass http://server01.example.com:8081;
}
}
server {
listen 443 ssl;
server_name couchpotato.example.com;
ssl on;
location / {
proxy_pass http://server01.example.com:5050;
}
}
server {
listen 443 ssl;
server_name plex.example.com;
ssl on;
location / {
proxy_pass http://server01.example.com:32400;
}
}
server {
listen 443 ssl;
server_name mail.example.com;
ssl on;
location / {
proxy_pass http://server02.example.com:4000;
}
}
server {
listen 443 ssl;
server_name headphones.example.com;
ssl on;
location / {
proxy_pass http://server01.example.com:8181;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment