Skip to content

Instantly share code, notes, and snippets.

@Tombert
Created August 28, 2015 15:48
Show Gist options
  • Save Tombert/ef633c12f60f70148875 to your computer and use it in GitHub Desktop.
Save Tombert/ef633c12f60f70148875 to your computer and use it in GitHub Desktop.
nginx stuf
server {
listen 80;
server_name brucewillis.sexy;
return 301 https://www.brucewillis.sexy$request_uri;
}
server {
listen 443 ssl;
server_name brucewillis.sexy www.brucewillis.sexy;
ssl_certificate /root/brucewillis.sexy.ssl/mycert.crt;
# ssl_certificate /root/brucewillis.sexy.ssl/nginx.crt;
ssl_certificate_key /root/brucewillis.sexy.ssl/www.brucewillis.sexy.key;
location /transmission {
proxy_pass http://192.168.0.2:9091;
}
location /emby {
proxy_pass http://192.168.0.5:8096;
}
location /yacy {
proxy_pass http://192.168.0.17:8090/;
}
location /ejabberd {
proxy_pass http://192.168.0.97:5280/;
proxy_set_header Host $host/ejabberd;
}
location /git {
proxy_pass http://192.168.0.6;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment