mirror of
https://github.com/monero-project/monero-docs.git
synced 2024-12-22 19:49:22 +00:00
Dockerfile_coolify: Added security and privacy-focused HTTP headers
- Implemented various HTTP headers to enhance security and privacy Full credit to featherwallet.org for the header configuration + inspiration.
This commit is contained in:
parent
2b8fdcc6cd
commit
543f332da1
1 changed files with 6 additions and 0 deletions
|
@ -16,6 +16,12 @@ COPY --from=builder /monero-docs/public /usr/share/nginx/html
|
||||||
RUN echo 'server { \
|
RUN echo 'server { \
|
||||||
listen 80; \
|
listen 80; \
|
||||||
add_header Onion-Location http://xmrdoc6phnvjbf5hmjbwdfu47zavzfngymlnwhs2gyxxpxmad4c65kyd.onion$request_uri; \
|
add_header Onion-Location http://xmrdoc6phnvjbf5hmjbwdfu47zavzfngymlnwhs2gyxxpxmad4c65kyd.onion$request_uri; \
|
||||||
|
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"; \
|
||||||
|
add_header Referrer-Policy "no-referrer"; \
|
||||||
|
add_header X-XSS-Protection "0"; \
|
||||||
|
add_header X-Frame-Options "DENY"; \
|
||||||
|
add_header X-Content-Type-Options "nosniff"; \
|
||||||
|
add_header Permissions-Policy "accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), clipboard-read=(), clipboard-write=(), display-capture=(), document-domain=(), encrypted-media=(), fullscreen=(), geolocation=(), gyroscope=(), hid=(), idle-detection=(), interest-cohort=(), magnetometer=(), microphone=(), midi=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), serial=(), sync-xhr=(), usb=(), xr-spatial-tracking=()"; \
|
||||||
root /usr/share/nginx/html; \
|
root /usr/share/nginx/html; \
|
||||||
index index.html index.htm; \
|
index index.html index.htm; \
|
||||||
error_page 404 /404.html; \
|
error_page 404 /404.html; \
|
||||||
|
|
Loading…
Reference in a new issue