Enable access logs
This commit is contained in:
parent
3c71ebe5e2
commit
2ed43b4c83
|
@ -10,4 +10,5 @@ RUN hugo mod get -u && \
|
||||||
|
|
||||||
FROM nginx:stable-alpine
|
FROM nginx:stable-alpine
|
||||||
|
|
||||||
COPY --from=build /app/public /usr/share/nginx/html/
|
COPY --from=build /app/public /usr/share/nginx/html/
|
||||||
|
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
|
|
@ -0,0 +1,17 @@
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
server_name localhost;
|
||||||
|
|
||||||
|
access_log /var/log/nginx/access.log main;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
index index.html index.htm;
|
||||||
|
}
|
||||||
|
|
||||||
|
error_page 500 502 503 504 /50x.html;
|
||||||
|
location = /50x.html {
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue