Also put access log in file for external access
This commit is contained in:
parent
28be3eb2a7
commit
a5e273cae6
2 changed files with 3 additions and 0 deletions
|
@ -21,6 +21,8 @@ RUN ./scripts/release.sh
|
|||
# Production run
|
||||
FROM nginx:stable-alpine
|
||||
|
||||
RUN rm /var/log/nginx/access.log
|
||||
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
COPY --from=build /app/public/ /usr/share/nginx/html
|
||||
|
|
|
@ -15,6 +15,7 @@ http {
|
|||
default_type application/octet-stream;
|
||||
|
||||
access_log /dev/stdout;
|
||||
access_log /var/log/nginx/access.log;
|
||||
|
||||
sendfile on;
|
||||
|
||||
|
|
Loading…
Reference in a new issue