Last active
January 14, 2022 17:09
-
-
Save mcroteau/a18bc27cc396250e499aea2274b3e764 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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