Nginx
Using Nginx is not required. If you would like to use it as a reverse proxy then the following is an example configuration that is known to work with Outline and it’s websockets setup.
This example does not include configuring SSL with Nginx, however once setup you can set FORCE_HTTPS=true
in Outline’s .env
configuration and any http requests will be automatically forwarded to https.
server {
server_name docs.mycompany.com;
listen 80;
listen 443 ssl;
# SSL certificate configuration is not included in this example
location / {
proxy_pass http://localhost: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 X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
}
}