Add nginx proxy for OG meta tags and CSS injection

Traefik was routing directly to Outline, so the nginx.conf
was unused. Add nginx as an intermediary service to enable
sub_filter injection of OG tags on the homepage and custom
CSS on all pages.
This commit is contained in:
Jennie Robinson Faber 2026-03-02 11:16:26 +00:00
parent 3f96674105
commit 6200c4cd2a
2 changed files with 19 additions and 4 deletions

View file

@ -1,10 +1,21 @@
services: services:
nginx:
image: nginx:alpine
container_name: outline-nginx
restart: unless-stopped
depends_on:
- outline
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./theme:/opt/ghost-guild-wiki-theme:ro
networks:
- default
- dokploy-network
outline: outline:
image: docker.getoutline.com/outlinewiki/outline:latest image: docker.getoutline.com/outlinewiki/outline:latest
container_name: outline container_name: outline
restart: unless-stopped restart: unless-stopped
ports:
- "127.0.0.1:3100:3000"
env_file: ./outline.env env_file: ./outline.env
depends_on: depends_on:
postgres: postgres:
@ -56,6 +67,10 @@ services:
timeout: 5s timeout: 5s
retries: 5 retries: 5
networks:
dokploy-network:
external: true
volumes: volumes:
outline-storage: outline-storage:
postgres-data: postgres-data:

View file

@ -22,7 +22,7 @@ http {
tcp_nodelay on; tcp_nodelay on;
keepalive_timeout 65; keepalive_timeout 65;
types_hash_max_size 2048; types_hash_max_size 2048;
client_max_body_size 50M; client_max_body_size 100M;
gzip on; gzip on;
gzip_vary on; gzip_vary on;
@ -32,7 +32,7 @@ http {
application/xml+rss image/svg+xml; application/xml+rss image/svg+xml;
upstream outline { upstream outline {
server 127.0.0.1:3100; server outline:3000;
} }
server { server {