Sign inSign up

icegroup/nginx

By icegroup

•Updated over 6 years ago

IceGroup-Nginx-容器

Image
0

1.0K

icegroup/nginx repository overview

⁠IceGroup-Nginx-容器

⁠IceGroup-Nginx-Web部署容器

Dockerfile

FROM icegroup/nginx:1.0.0
LABEL maintainer="[email protected]"

COPY dist /usr/local/nginx/www
COPY docker/nginx.80.conf /usr/local/nginx/conf.d/nginx.80.conf

EXPOSE 80
EXPOSE 443
EXPOSE 9913

ENV server.port=8081
ENV ENABLE_NACOS_CLIENT=TRUE
ENV spring.application.name=nacos-client
ENV spring.cloud.nacos.discovery.server-addr=monitor-nacos:8848
ENV management.endpoints.web.exposure.include='*'

# ENV ENABLE_EUREKA_CLIENT=TRUE
# ENV eureka.name=web-admin
# ENV eureka.port=80
# ENV eureka.management.port=9913
# ENV eureka.serviceUrl.default=http://monitor-eureka:9000/eureka

Nginx conf

server {
    listen       80;
    server_name  localhost;

    #charset koi8-r;
    #access_log  /var/log/nginx/host.access.log  main;

    location / {
        root   /usr/local/nginx/www;
        index  index.html index.htm;
    }

    location /api/ {
        # Pinpoint Monitoring Proxy Server http://naver.github.io/pinpoint/1.8.3/proxyhttpheader.html
        set $pinpoint_proxy_header "t=$msec D=$request_time";
        proxy_set_header Pinpoint-ProxyNginx $pinpoint_proxy_header;
        proxy_pass http://gateway-example:9201/;
    }

    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/local/nginx/html;
    }
}

Tag summary

Content type

Image

Digest

Size

298.1 MB

Last updated

over 6 years ago

docker pull icegroup/nginx