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; } } }