From d4453b11b70333f27c21737d14511720ae44437b Mon Sep 17 00:00:00 2001 From: Jennie Robinson Faber Date: Sun, 17 May 2026 18:30:16 +0100 Subject: [PATCH] Add license --- nginx.conf | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/nginx.conf b/nginx.conf index d99bd51..9fbe077 100644 --- a/nginx.conf +++ b/nginx.conf @@ -52,7 +52,7 @@ http { access_log off; } - # Homepage: inject OG meta tags + CSS + # Homepage: inject OG meta tags + license footer script location = / { proxy_pass http://outline; @@ -69,11 +69,14 @@ http { # OG tags after so they appear before Outline's own tags sub_filter '' ''; + # CC BY-SA 4.0 license footer (script self-gates to /doc/ pages). + sub_filter '' ''; + sub_filter_once on; sub_filter_types text/html; } - # Reverse proxy to Outline with CSS injection + # Reverse proxy to Outline with license footer injection location / { proxy_pass http://outline; @@ -91,6 +94,11 @@ http { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; + # CC BY-SA 4.0 license footer (script self-gates to /doc/ pages). + sub_filter '' ''; + + sub_filter_once on; + sub_filter_types text/html; } } }