docs: add reverse-proxy example config, fix outpost docker-compose
This commit is contained in:
parent
63041d788b
commit
7a3122f25c
|
@ -0,0 +1,42 @@
|
||||||
|
# passbook behind a reverse-proxy
|
||||||
|
|
||||||
|
If you want to access passbook behind a reverse-proxy, use a config like this. It is important that Websocket is enabled, so that Outposts can connect.
|
||||||
|
|
||||||
|
```
|
||||||
|
map $http_upgrade $connection_upgrade {
|
||||||
|
default upgrade;
|
||||||
|
'' close;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
# Server config
|
||||||
|
listen 80;
|
||||||
|
server_name sso.domain.tld;
|
||||||
|
|
||||||
|
# 301 to SSL
|
||||||
|
location / {
|
||||||
|
return 301 https://$host$request_uri;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
server {
|
||||||
|
# Server config
|
||||||
|
listen 443 ssl http2;
|
||||||
|
server_name sso.domain.tld;
|
||||||
|
|
||||||
|
# SSL Certs
|
||||||
|
ssl_certificate /etc/letsencrypt/live/domain.tld/fullchain.pem;
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/domain.tld/privkey.pem;
|
||||||
|
|
||||||
|
# Proxy site
|
||||||
|
location / {
|
||||||
|
proxy_pass https://<hostname of your passbook server>;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header X-Forwarded-Proto https;
|
||||||
|
proxy_set_header X-Forwarded-Port 443;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header Host $http_host;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection $connection_upgrade;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
|
@ -5,7 +5,7 @@ To deploy an outpost with docker-compose, use this snippet in your docker-compo
|
||||||
You can also run the outpost in a separate docker-compose project, you just have to ensure that the outpost container can reach your application container.
|
You can also run the outpost in a separate docker-compose project, you just have to ensure that the outpost container can reach your application container.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
version: 3.5
|
version: '3.5'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
passbook_proxy:
|
passbook_proxy:
|
||||||
|
|
|
@ -8,6 +8,7 @@ nav:
|
||||||
- Installation:
|
- Installation:
|
||||||
- docker-compose: installation/docker-compose.md
|
- docker-compose: installation/docker-compose.md
|
||||||
- Kubernetes: installation/kubernetes.md
|
- Kubernetes: installation/kubernetes.md
|
||||||
|
- Reverse Proxy: installation/reverse-proxy.md
|
||||||
- Flows:
|
- Flows:
|
||||||
Overview: flow/flows.md
|
Overview: flow/flows.md
|
||||||
Examples: flow/examples/examples.md
|
Examples: flow/examples/examples.md
|
||||||
|
|
Reference in New Issue