Encrypt per-user Gotify tokens at rest with sodium/openssl, add app_secret config, security headers, Apache .htaccess hardening, and restrictive permissions for stored settings.
12 lines
501 B
ApacheConf
12 lines
501 B
ApacheConf
# Apache hardening for Oscar Admin
|
|
Options -Indexes
|
|
|
|
<FilesMatch "(^\.|config\.php$|config\.example\.php$|lib\.php$|lib_gotify\.php$|user-menu\.php$|gotify-users\.php$|gotify-users\.json$|audit\.log$|README\.md$|SECURITY\.md$|CONTRIBUTING\.md$|AI_DISCLOSURE\.md|LICENSE$)">
|
|
Require all denied
|
|
</FilesMatch>
|
|
|
|
<IfModule mod_headers.c>
|
|
Header always set X-Frame-Options "DENY"
|
|
Header always set X-Content-Type-Options "nosniff"
|
|
Header always set Referrer-Policy "no-referrer"
|
|
</IfModule>
|