mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-11 01:08:34 +02:00
23 lines
No EOL
1.1 KiB
Text
23 lines
No EOL
1.1 KiB
Text
<VirtualHost *:443>
|
|
ServerName rdap.example.com
|
|
|
|
# Reverse Proxy to localhost:7500
|
|
ProxyPass / http://localhost:7500/
|
|
ProxyPassReverse / http://localhost:7500/
|
|
|
|
# Gzip Encoding
|
|
AddOutputFilterByType DEFLATE text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript
|
|
|
|
# Security Headers
|
|
Header always set Referrer-Policy "no-referrer"
|
|
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
|
|
Header always set X-Content-Type-Options "nosniff"
|
|
Header always set X-Frame-Options "DENY"
|
|
Header always set X-XSS-Protection "1; mode=block"
|
|
Header always set Content-Security-Policy "default-src 'none'; object-src 'none'; base-uri 'self'; frame-ancestors 'none'; img-src https:; font-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'none'; form-action 'self'; worker-src 'none'; frame-src 'none';"
|
|
Header unset Server
|
|
|
|
# Log configuration
|
|
CustomLog /var/log/apache2/rdap_access.log combined
|
|
ErrorLog /var/log/apache2/rdap_error.log
|
|
</VirtualHost> |