Skip to content

Commit 086d109

Browse files
committed
Update README.md
1 parent aa6ab18 commit 086d109

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

README.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,19 @@ To use it, simply install `npm install express express-session` and add the foll
178178

179179
Then launch the web page in the browser at `http://127.0.0.1:8889`
180180

181-
The web page is designed to be used with a proxy pass from nginx or httpd.
181+
The web page is designed to be used with a proxy from nginx or httpd, by creating a subdomain like https://j-bnc.domain.com and configuring the proxy:
182182

183183
For nginx, something like:
184184

185185
```
186186
server {
187-
...
188-
location /adminpanel {
187+
listen 443 ssl;
188+
server_name j-bnc.domain.com;
189+
190+
ssl_certificate /path/to/your/certificate.crt;
191+
ssl_certificate_key /path/to/your/private.key;
192+
193+
location / {
189194
proxy_pass http://127.0.0.1:8889;
190195
...
191196
}
@@ -196,9 +201,14 @@ And for httpd:
196201

197202
```
198203
<VirtualHost *:443>
199-
...
200-
ProxyPass /adminpanel http://127.0.0.1:8889
201-
ProxyPassReverse /adminpanel http://127.0.0.1:8889
204+
ServerName j-bnc.domain.com
205+
206+
SSLEngine on
207+
SSLCertificateFile /path/to/your/certificate.crt
208+
SSLCertificateKeyFile /path/to/your/private.key
209+
210+
ProxyPass / http://127.0.0.1:8889/
211+
ProxyPassReverse / http://127.0.0.1:8889/
202212
...
203213
</VirtualHost>
204214
```

0 commit comments

Comments
 (0)