Skip to content

Instantly share code, notes, and snippets.

@00dani
Created January 1, 2018 05:18
Show Gist options
  • Save 00dani/bb75b0822e1d2da2f6a40367bd406978 to your computer and use it in GitHub Desktop.
Save 00dani/bb75b0822e1d2da2f6a40367bd406978 to your computer and use it in GitHub Desktop.
server {
server_name syncthing.dev;
listen 4443 ssl http2;
listen [::]:4443 ssl http2;
allow 127.0.0.1;
allow ::1;
deny all;
location / {
proxy_pass http://localhost:8384;
proxy_set_header Host "localhost";
proxy_read_timeout 10h;
proxy_send_timeout 10h;
}
ssl_certificate /etc/ssl/dani-mac/int-1/store/syncthing.dev/live/syncthing.dev.chained.crt.pem;
ssl_certificate_key /etc/ssl/dani-mac/int-1/store/syncthing.dev/live/syncthing.dev.key.pem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment