32 lines
719 B
Plaintext
32 lines
719 B
Plaintext
|
server {
|
||
|
listen 80;
|
||
|
client_max_body_size 100m;
|
||
|
|
||
|
# Outline Wiki
|
||
|
location / {
|
||
|
proxy_pass http://outline:3000;
|
||
|
|
||
|
proxy_set_header Upgrade $http_upgrade;
|
||
|
proxy_set_header Connection "Upgrade";
|
||
|
proxy_set_header Host $host;
|
||
|
|
||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
proxy_set_header Host $http_host;
|
||
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
proxy_set_header X-Scheme $scheme;
|
||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||
|
proxy_redirect off;
|
||
|
}
|
||
|
|
||
|
# Static file FOR OIDC Server
|
||
|
location /uc/static {
|
||
|
alias /uc/static_root;
|
||
|
}
|
||
|
|
||
|
# OIDC Server
|
||
|
location /uc {
|
||
|
proxy_set_header SCRIPT_NAME /uc;
|
||
|
proxy_pass http://outline-oidc:8000;
|
||
|
}
|
||
|
}
|