Skip to content
Permalink
Browse files

Added contrib folder and docs on running behind nginx.

Signed-off-by: matueranet <github@daan.matuera.net>
  • Loading branch information...
matueranet authored and alexellis committed Sep 21, 2019
1 parent d8db8b7 commit e57224136c3ea62e3089111cda952db8b63d367c
Showing with 23 additions and 0 deletions.
  1. +23 −0 contrib/nginx.md
@@ -0,0 +1,23 @@
### Run behind nginx

If you already have an existing nginx webserver running, you can proxy your inlets server through nginx. Simply create a new site configuration file. This example assumes inlets is running port 8000, the default port, but you can use any port number you'd like via `--port=` when starting the server:

```
server {
listen 80;
# Replace *.inlets.example.com with your own wildcard domain.
server_name *.inlets.example.com;
#Inlets proxy
location / {
proxy_pass http://127.0.0.1:8000;
proxy_http_version 1.1;
proxy_read_timeout 120s;
proxy_connect_timeout 120s;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
```
You can even secure your connection with SSL via your own certificate, or via Letsencrypt!

0 comments on commit e572241

Please sign in to comment.
You can’t perform that action at this time.