5 changed files with 185 additions and 6 deletions
-
2index.html
-
179nginx.conf
-
2src/components/CustomerService/index.vue
-
4src/components/MetalPlate/Bottom/NewBottomMetal.vue
-
4src/components/MetalPlate/Bottom/NewBottomWhiteMetal.vue
@ -0,0 +1,179 @@ |
|||
|
|||
#user nobody; |
|||
worker_processes 1; |
|||
|
|||
#error_log logs/error.log; |
|||
#error_log logs/error.log notice; |
|||
#error_log logs/error.log info; |
|||
|
|||
#pid logs/nginx.pid; |
|||
|
|||
|
|||
events { |
|||
worker_connections 1024; |
|||
} |
|||
|
|||
|
|||
http { |
|||
include mime.types; |
|||
default_type application/octet-stream; |
|||
sendfile on; |
|||
keepalive_timeout 65; |
|||
|
|||
server { |
|||
listen 80; |
|||
server_name www.iflytop.com; |
|||
|
|||
#charset koi8-r; |
|||
|
|||
#access_log logs/host.access.log main; |
|||
|
|||
location / { |
|||
root apps/pc/dist; |
|||
try_files $uri $uri/ /index.html; |
|||
index index.html index.htm; |
|||
} |
|||
|
|||
location /mobile { |
|||
alias apps/mobile/dist; |
|||
index index.html index.htm; |
|||
try_files $uri $uri/ /mobile/index.html; |
|||
} |
|||
|
|||
|
|||
location /pc-design { |
|||
alias apps/pc-design/dist; |
|||
index index.html index.htm; |
|||
try_files $uri $uri/ /pc-design/index.html; |
|||
} |
|||
location /pc-hardware { |
|||
alias apps/pc-hardware/dist; |
|||
index index.html index.htm; |
|||
try_files $uri $uri/ /pc-hardware/index.html; |
|||
} |
|||
location /pc-metal { |
|||
alias apps/pc-metal/dist; |
|||
index index.html index.htm; |
|||
try_files $uri $uri/ /pc-metal/index.html; |
|||
} |
|||
|
|||
location /zsjyapi/ { |
|||
proxy_pass http://localhost:8080/zsjyapi/; |
|||
proxy_set_header Host $host; |
|||
proxy_set_header X-Real-IP $remote_addr; |
|||
} |
|||
location /test_result_image/ { |
|||
proxy_pass http://localhost:8080/test_result_image/; |
|||
proxy_set_header Host $host; |
|||
proxy_set_header X-Real-IP $remote_addr; |
|||
} |
|||
|
|||
#error_page 404 /404.html; |
|||
|
|||
# redirect server error pages to the static page /50x.html |
|||
# |
|||
error_page 500 502 503 504 /50x.html; |
|||
location = /50x.html { |
|||
root html; |
|||
} |
|||
|
|||
# proxy the PHP scripts to Apache listening on 127.0.0.1:80 |
|||
# |
|||
#location ~ \.php$ { |
|||
# proxy_pass http://127.0.0.1; |
|||
#} |
|||
|
|||
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 |
|||
# |
|||
#location ~ \.php$ { |
|||
# root html; |
|||
# fastcgi_pass 127.0.0.1:9000; |
|||
# fastcgi_index index.php; |
|||
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; |
|||
# include fastcgi_params; |
|||
#} |
|||
|
|||
# deny access to .htaccess files, if Apache's document root |
|||
# concurs with nginx's one |
|||
# |
|||
#location ~ /\.ht { |
|||
# deny all; |
|||
#} |
|||
} |
|||
|
|||
|
|||
|
|||
# another virtual host using mix of IP-, name-, and port-based configuration |
|||
# |
|||
server { |
|||
listen 80; |
|||
server_name www.hjyd88.com; |
|||
location / { |
|||
root apps/hjyd/dist; |
|||
if ( $http_user_agent ~ "(MIDP)|(WAP)|(UP.Browser)|(Smartphone)|(Obigo)|(Mobile)|(AU.Browser)|(wxd.Mms)|(WxdB.Browser)|(CLDC)|(UP.Link)|(KM.Browser)|(UCWEB)|(SEMC-Browser)|(Mini)|(Symbian)|(Palm)|(Nokia)|(Panasonic)|(MOT-)|(SonyEricsson)|(NEC-)|(Alcatel)|(Ericsson)|(BENQ)|(BenQ)|(Amoisonic)|(Amoi-)|(Capitel)|(PHILIPS)|(SAMSUNG)|(Lenovo)|(Mitsu)|(Motorola)|(SHARP)|(WAPPER)|(LG-)|(LG/)|(EG900)|(CECT)|(Compal)|(kejian)|(Bird)|(BIRD)|(G900/V1.0)|(Arima)|(CTL)|(TDG)|(Daxian)|(DAXIAN)|(DBTEL)|(Eastcom)|(EASTCOM)|(PANTECH)|(Dopod)|(Haier)|(HAIER)|(KONKA)|(KEJIAN)|(LENOVO)|(Soutec)|(SOUTEC)|(SAGEM)|(SEC-)|(SED-)|(EMOL-)|(INNO55)|(ZTE)|(iPhone)|(Android)|(Windows CE)|(Wget)|(Java)|(curl)|(Opera)" ) { |
|||
root apps/mobile-hjyd/dist; |
|||
} |
|||
index index.html index.htm; |
|||
} |
|||
} |
|||
|
|||
# HTTPS server |
|||
# |
|||
server { |
|||
listen 443 ssl; |
|||
server_name www.iflytop.com; |
|||
# ssl on; |
|||
ssl_certificate D:\website_key\www.iflytop.com.pem; |
|||
ssl_certificate_key D:\website_key\www.iflytop.com.key; |
|||
ssl_session_cache shared:SSL:1m; |
|||
ssl_session_timeout 5m; |
|||
#自定义设置使用的TLS协议的类型以及加密套件(以下为配置示例,请您自行评估是否需要配置) |
|||
#TLS协议版本越高,HTTPS通信的安全性越高,但是相较于低版本TLS协议,高版本TLS协议对浏览器的兼容性较差。 |
|||
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; |
|||
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3; |
|||
|
|||
#表示优先使用服务端加密套件。默认开启 |
|||
ssl_prefer_server_ciphers on; |
|||
|
|||
location / { |
|||
root apps/pc/dist; |
|||
try_files $uri $uri/ /index.html; |
|||
index index.html index.htm; |
|||
} |
|||
|
|||
location /mobile { |
|||
alias apps/mobile/dist; |
|||
index index.html index.htm; |
|||
try_files $uri $uri/ /mobile/index.html; |
|||
} |
|||
|
|||
|
|||
location /pc-design { |
|||
alias apps/pc-design/dist; |
|||
index index.html index.htm; |
|||
try_files $uri $uri/ /pc-design/index.html; |
|||
} |
|||
location /pc-hardware { |
|||
alias apps/pc-hardware/dist; |
|||
index index.html index.htm; |
|||
try_files $uri $uri/ /pc-hardware/index.html; |
|||
} |
|||
location /pc-metal { |
|||
alias apps/pc-metal/dist; |
|||
index index.html index.htm; |
|||
try_files $uri $uri/ /pc-metal/index.html; |
|||
} |
|||
|
|||
location /zsjyapi/ { |
|||
proxy_pass http://localhost:8080/zsjyapi/; |
|||
proxy_set_header Host $host; |
|||
proxy_set_header X-Real-IP $remote_addr; |
|||
} |
|||
location /test_result_image/ { |
|||
proxy_pass http://localhost:8080/test_result_image/; |
|||
proxy_set_header Host $host; |
|||
proxy_set_header X-Real-IP $remote_addr; |
|||
} |
|||
} |
|||
|
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue