From 6200c4cd2a1d9a02b410234319ac60d282d417d7 Mon Sep 17 00:00:00 2001 From: Jennie Robinson Faber Date: Mon, 2 Mar 2026 11:16:26 +0000 Subject: [PATCH] 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. --- docker-compose.yml | 19 +++++++++++++++++-- nginx.conf | 4 ++-- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 3a5434b..9301515 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,10 +1,21 @@ 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: image: docker.getoutline.com/outlinewiki/outline:latest container_name: outline restart: unless-stopped - ports: - - "127.0.0.1:3100:3000" env_file: ./outline.env depends_on: postgres: @@ -56,6 +67,10 @@ services: timeout: 5s retries: 5 +networks: + dokploy-network: + external: true + volumes: outline-storage: postgres-data: diff --git a/nginx.conf b/nginx.conf index d03023a..be58e1f 100644 --- a/nginx.conf +++ b/nginx.conf @@ -22,7 +22,7 @@ http { tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; - client_max_body_size 50M; + client_max_body_size 100M; gzip on; gzip_vary on; @@ -32,7 +32,7 @@ http { application/xml+rss image/svg+xml; upstream outline { - server 127.0.0.1:3100; + server outline:3000; } server {