File tree Expand file tree Collapse file tree 3 files changed +51
-0
lines changed
images/networking-console-plugin Expand file tree Collapse file tree 3 files changed +51
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ RUN INSTALL_PKGS="nginx findutils gettext" && \
2424 chown -R 1001:0 /var/lib/nginx /var/log/nginx /run /docker-entrypoint.d /etc/nginx/templates /etc/nginx/conf.d && \
2525 chmod -R ug+rwX /var/lib/nginx /var/log/nginx /run /docker-entrypoint.d /etc/nginx/templates /etc/nginx/conf.d
2626
27+ ENV NGINX_PORT=8080
28+
2729# Use none-root user
2830USER 1001
2931
@@ -35,6 +37,7 @@ USER 1001
3537# root /opt/app-root/src;
3638
3739COPY --from=build /opt/app-root/src/app/dist /usr/share/nginx/html
40+ COPY nginx.conf /etc/nginx/nginx.conf
3841COPY nginx.conf.template /etc/nginx/templates/default.conf.template
3942
4043COPY docker-entrypoint.sh /
Original file line number Diff line number Diff line change 1+ # For more information on configuration, see:
2+ # * Official English Documentation: http://nginx.org/en/docs/
3+
4+ user nginx;
5+ worker_processes auto;
6+ error_log /var/log/nginx/error.log notice;
7+ pid /run/nginx.pid ;
8+
9+ # Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
10+ include /usr/share/nginx/modules/*.conf;
11+
12+ events {
13+ worker_connections 1024 ;
14+ }
15+
16+ http {
17+ log_format main '$remote_addr - $remote_user [$time_local] "$request" '
18+ '$status $body_bytes_sent "$http_referer" '
19+ '"$http_user_agent" "$http_x_forwarded_for"' ;
20+
21+ access_log /var/log/nginx/access.log main;
22+
23+ sendfile on;
24+ tcp_nopush on;
25+ keepalive_timeout 65 ;
26+ types_hash_max_size 4096 ;
27+
28+ include /etc/nginx/mime.types ;
29+ default_type application/octet-stream ;
30+
31+ # Load modular configuration files from the /etc/nginx/conf.d directory.
32+ # See http://nginx.org/en/docs/ngx_core_module.html#include
33+ # for more information.
34+ include /etc/nginx/conf.d/*.conf;
35+ }
Original file line number Diff line number Diff line change 11server {
22 listen ${NGINX_PORT};
33 listen [::]:${NGINX_PORT};
4+ server_name _;
5+ root /usr/share/nginx/html;
6+
7+ # Load configuration files for the default server block.
8+ include /etc/nginx/default.d/*.conf;
9+
10+ error_page 404 /404.html;
11+ location = /404.html {
12+ }
13+
14+ error_page 500 502 503 504 /50x.html;
15+ location = /50x.html {
16+ }
417}
You can’t perform that action at this time.
0 commit comments