diff --git a/Dockerfile b/Dockerfile index c5740df..ffaf593 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,4 +2,3 @@ FROM nginx:1.23.2 COPY public/ /usr/share/nginx/html/deploy/ COPY nginx.conf /etc/nginx/nginx.conf COPY conf.d/ /etc/nginx/conf.d/ -COPY cert/ /usr/local/nginx/cert/ diff --git a/conf.d/default.conf b/conf.d/default.conf index e70e5fc..6118477 100644 --- a/conf.d/default.conf +++ b/conf.d/default.conf @@ -6,10 +6,11 @@ server { #access_log /var/log/nginx/host.access.log main; location / { - root /usr/share/nginx/html/dist; - index index.html index.htm; - } - + #网站主页路径。此路径仅供参考,具体请您按照实际目录操作。 + #例如,您的网站主页在 Nginx 服务器的 /etc/www 目录下,则请修改 root 后面的 html 为 /etc/www。 + root /usr/share/nginx/html/deploy; + index index.html index.htm; + } #error_page 404 /404.html; # redirect server error pages to the static page /50x.html @@ -19,13 +20,6 @@ server { # root /usr/share/nginx/html; #} - location /api { - proxy_set_header Host $http_host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header REMOTE-HOST $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_pass http://120.46.194.61:7274/api; - } # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # #location ~ \.php$ { @@ -50,14 +44,3 @@ server { #} } -server { - listen 80; - location / { - #网站主页路径。此路径仅供参考,具体请您按照实际目录操作。 - #例如,您的网站主页在 Nginx 服务器的 /etc/www 目录下,则请修改 root 后面的 html 为 /etc/www。 - root /usr/share/nginx/html/deploy; - index index.html index.htm; - } - -} -