Skip to content

Commit cfc68b4

Browse files
Added Reverse Proxy section to docs
1 parent 3f06328 commit cfc68b4

1 file changed

Lines changed: 45 additions & 5 deletions

File tree

README.md

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
<a href="#4">Supported Architectures</a> •
1212
<a href="#5">Deployment</a> •
1313
<a href="#6">Updating</a> •
14-
<a href="#7">Build</a>
14+
<a href="#7">Build</a> •
15+
<a href="#8">Reverse Proxy</a>
1516
</p><br>
1617

1718
<p align="center">
@@ -172,10 +173,6 @@ This updater allows you to update your installation with just one click.
172173

173174
<br>
174175

175-
---
176-
177-
<br>
178-
179176
<a name="7"></a>
180177
## Build
181178

@@ -189,5 +186,48 @@ From the docker directory, run the command:
189186
docker build -t littlelink-custom .
190187
</pre>
191188

189+
<br>
190+
191+
<a name="8"></a>
192+
## Reverse Proxy
193+
194+
### NGINX:
195+
196+
**Below is an example NGINX setup for a reverse proxy.**
197+
<details><pre>
198+
199+
server {
200+
listen 443 ssl;
201+
listen [::]:443 ssl;
202+
listen 80;
203+
listen [::]:80;
204+
server_name your.domain.name;
205+
206+
location / {
207+
proxy_pass http://192.168.XXX.XXX;
208+
proxy_set_header Host $host;
209+
proxy_set_header X-Real-IP $remote_addr;
210+
211+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
212+
proxy_set_header X-Forwarded-Proto https;
213+
proxy_set_header X-VerifiedViaNginx yes;
214+
proxy_read_timeout 60;
215+
proxy_connect_timeout 60;
216+
proxy_redirect off;
217+
218+
# Specific for websockets: force the use of HTTP/1.1 and set the Upgrade header
219+
proxy_http_version 1.1;
220+
proxy_set_header Upgrade $http_upgrade;
221+
proxy_set_header Connection 'upgrade';
222+
proxy_cache_bypass $http_upgrade;
223+
proxy_set_header X-Forwarded-Proto $scheme;
224+
225+
# Fixes Mixed Content errors.
226+
add_header 'Content-Security-Policy' 'upgrade-insecure-requests';
227+
}
228+
}
229+
230+
</pre></details>
231+
192232
<br>
193233
<br>

0 commit comments

Comments
 (0)