Update nginx configuration for homepage meta tags and CSS injection; add workspace.json changes for article tabs and release notes; update .gitignore to exclude README.md and workspace.json.
This commit is contained in:
parent
c836df8825
commit
3f96674105
7 changed files with 99 additions and 2050 deletions
24
nginx.conf
24
nginx.conf
|
|
@ -53,6 +53,30 @@ http {
|
|||
access_log off;
|
||||
}
|
||||
|
||||
# Homepage: inject OG meta tags + CSS
|
||||
location = / {
|
||||
proxy_pass http://outline;
|
||||
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header Accept-Encoding "";
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
# OG tags after <head> so they appear before Outline's own tags
|
||||
sub_filter '<head>' '<head><meta property="og:title" content="Ghost Guild Wiki" /><meta property="og:description" content="A living knowledge base for Baby Ghosts & Ghost Guild." /><meta property="og:type" content="website" /><meta property="og:url" content="https://wiki.ghostguild.org" /><meta name="twitter:card" content="summary" /><meta name="twitter:title" content="Ghost Guild Wiki" /><meta name="twitter:description" content="A living knowledge base for Baby Ghosts & Ghost Guild." />';
|
||||
|
||||
# CSS injection (must redeclare; sub_filter doesn't inherit across location blocks)
|
||||
sub_filter '</head>' '<link rel="stylesheet" href="/custom/ghost-guild.css" /></head>';
|
||||
|
||||
sub_filter_once on;
|
||||
sub_filter_types text/html;
|
||||
}
|
||||
|
||||
# Reverse proxy to Outline with CSS injection
|
||||
location / {
|
||||
proxy_pass http://outline;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue