0b0869a4 by lihua

先去掉自定义appkey

1 parent 3233b39b
...@@ -11,4 +11,4 @@ RUN chown -R nginx:nginx /usr/share/nginx/html ...@@ -11,4 +11,4 @@ RUN chown -R nginx:nginx /usr/share/nginx/html
11 EXPOSE 29900 11 EXPOSE 29900
12 #CMD:指定容器启动时要运行的命令 12 #CMD:指定容器启动时要运行的命令
13 CMD ["nginx", "-g", "daemon off;"] 13 CMD ["nginx", "-g", "daemon off;"]
14 CMD envsubst '${API_BASE_URL}' < /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;' 14 #CMD envsubst '${API_BASE_URL}' < /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'
......
...@@ -37,12 +37,12 @@ server { ...@@ -37,12 +37,12 @@ server {
37 } 37 }
38 38
39 # 专门处理 config.json 的 location 39 # 专门处理 config.json 的 location
40 location = /config.json { 40 # location = /config.json {
41 # 启用 sub_filter 并指定 MIME 类型为 application/json 41 # # 启用 sub_filter 并指定 MIME 类型为 application/json
42 sub_filter '{{{API_BASE_URL}}}' '${API_BASE_URL}'; 42 # sub_filter '{{{API_BASE_URL}}}' '${API_BASE_URL}';
43 sub_filter_once off; 43 # sub_filter_once off;
44 sub_filter_types application/json; # 关键:允许替换 JSON 类型 44 # sub_filter_types application/json; # 关键:允许替换 JSON 类型
45 } 45 # }
46 46
47 error_page 500 502 503 504 /50x.html; 47 error_page 500 502 503 504 /50x.html;
48 location = /50x.html { 48 location = /50x.html {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!