5813c49261
Refactor Referrer-Policy header
...
- Change the variable to always-headers so it can be extended in the future
- New function build-headers that assists combining complex logic headers
together with less mess
- Also apply headers to the proxy
2022-10-09 23:45:55 +13:00
adc4b47b83
Set Referrer-Policy to no-referrer
...
Fandom sends a fake 404 to media if there's a Referer header that has an origin
that's not Fandom. However, we can choose not to send the header by setting
Referrer-Policy. See also:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy
2022-10-09 10:45:48 +00:00
59332fd9d1
Pass siteinfo through code; show sitename in title
2022-10-09 22:50:50 +13:00
a9acfc34a2
Display correct license information
2022-09-17 01:56:03 +12:00
0172034319
Match original light/dark page theme reliably
...
- Use keyword parameters for generate-wiki-page
- Apply body classes (including page theme) from original source
2022-09-17 00:56:05 +12:00
33ee6a0624
Also display the content on category pages
2022-09-11 23:21:37 +12:00
7a4bfe4180
Redirect /wikiname to its homepage
2022-09-09 15:42:20 +12:00
e6eabe9cf4
Proxy stylesheets too under strict_proxy
...
This also refactors the configuration system to use make-parameter,
because dynamic binding allows for testing code more easily.
2022-09-08 14:05:47 +12:00
6be10ed319
Unify application footer
2022-09-05 01:58:45 +12:00
cc138a07aa
Rename config options to use underscores
...
Makes more sense for the INI.
2022-09-04 13:38:30 +12:00
b18a31df4a
Use ini for configuration
2022-08-24 20:59:11 +12:00
80f03aac18
Initial commit
...
* Viewing for wiki pages
* Searches
* Categories
* Logo
* Image proxy
* Config loaded from config.txt
* AGPL 3 license
2022-08-23 22:15:24 +12:00