Dockerfile_coolify: add Onion-Location header

Co-authored-by: nahuhh <50635951+nahuhh@users.noreply.github.com>
This commit is contained in:
plowsof 2024-08-30 00:29:10 +01:00 committed by plowsof
parent 6950bc2d63
commit 2b8fdcc6cd

View file

@ -15,6 +15,7 @@ COPY --from=builder /monero-docs/public /usr/share/nginx/html
# Inline Nginx configuration # Inline Nginx configuration
RUN echo 'server { \ RUN echo 'server { \
listen 80; \ listen 80; \
add_header Onion-Location http://xmrdoc6phnvjbf5hmjbwdfu47zavzfngymlnwhs2gyxxpxmad4c65kyd.onion$request_uri; \
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; \