lib-vt: trying to fix up hosted docs

pull/9050/head
Mitchell Hashimoto 2025-10-05 20:36:20 -07:00
parent 21d545c3b4
commit 86421c9e09
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
2 changed files with 13 additions and 0 deletions

View File

@ -44,6 +44,7 @@ HTML_OUTPUT = zig-out/share/ghostty/doc/libghostty
HTML_EXTRA_STYLESHEET = dist/doxygen/ghostty.css
HTML_EXTRA_FILES = dist/doxygen/favicon.png
HTML_COLORSTYLE = DARK
HTML_CODE_FOLDING = NO
LAYOUT_FILE = DoxygenLayout.xml
GENERATE_TREEVIEW = YES
HTML_DYNAMIC_SECTIONS = YES

View File

@ -7,10 +7,22 @@ server {
root /usr/share/nginx/html;
index index.html;
add_header X-Robots-Tag "noindex, nofollow" always;
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;" always;
}
}
EOF
# Remove default server config
rm -f /etc/nginx/conf.d/default.conf
else
cat > /etc/nginx/conf.d/default.conf << 'EOF'
server {
listen 80;
location / {
root /usr/share/nginx/html;
index index.html;
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;" always;
}
}
EOF
fi
exec nginx -g "daemon off;"