This is an automated email from the ASF dual-hosted git repository. shuai pushed a commit to branch nginx in repository https://gitbox.apache.org/repos/asf/answer-website.git
commit ed149b50c40a20e519fa1dc6de35a0515604dd66 Author: shuai <[email protected]> AuthorDate: Mon Feb 17 14:41:40 2025 +0800 fix: delete nginx.conf file --- Dockerfile | 3 --- nginx.conf | 31 ------------------------------- 2 files changed, 34 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5a844dede..5560e5b24 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,5 @@ FROM nginx:alpine -RUN rm /etc/nginx/conf.d/default.conf -COPY nginx.conf /etc/nginx/conf.d/default.conf - COPY ./build /usr/share/nginx/html EXPOSE 80 diff --git a/nginx.conf b/nginx.conf deleted file mode 100644 index 34009b23b..000000000 --- a/nginx.conf +++ /dev/null @@ -1,31 +0,0 @@ -server { - listen 80; - server_name localhost; - - # 静态文件服务 - location / { - root /usr/share/nginx/html; - index index.html; - try_files $uri $uri/ /index.html; - } - - location /github-stars/ { - proxy_pass https://img.shields.io/github/stars/; - proxy_set_header Host img.shields.io; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_ssl_protocols TLSv1.2 TLSv1.3; - proxy_ssl_ciphers HIGH:!aNULL:!MD5; - } - - location /mixpanel/ { - proxy_pass https://api-js.mixpanel.com/track/; - proxy_set_header Host api-js.mixpanel.com; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_pass_request_headers on; - proxy_pass_request_body on; - } -}
