nginx: redirect 404 to /404.html
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-04-05 16:27:51 +02:00
parent 1432f7e50d
commit 30be2871f2
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -23,6 +23,6 @@ RUN sed -i -e 's/^worker_processes auto;/worker_processes auto;/'\
-e "/^events {$/ a \\\tmulti_accept on;\n\tuse epoll;"\
-e "/^http {$/ a \\\tserver_tokens off;\n\tetag off;\n"\
-e 's/#tcp_nopush/tcp_nopush/'\
-e "/tcp_nopush/ a \\\ttcp_nodelay on;"\
-e "/tcp_nopush/ a \\\ttcp_nodelay on;\n\terror_page 404 /404.html;"\
-e "s/^ */$(printf '\t')/"\
/etc/nginx/nginx.conf