From 122e5fb7fabb3f9575d5e0ac0788ed6e4d8bb936 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B0=8F=E4=BA=91?= Date: Mon, 19 May 2025 10:41:05 +0800 Subject: [PATCH] xxx --- nginx/temp_vhosts/airport.conf | 49 ----------------------------- nginx/temp_vhosts/consul.conf | 21 ------------- nginx/temp_vhosts/minio.conf | 20 ------------ nginx/temp_vhosts/minioconsole.conf | 20 ------------ nginx/temp_vhosts/oidcservice.conf | 24 -------------- nginx/temp_vhosts/upstream.conf | 7 ----- nginx/temp_vhosts/xxljob.conf | 21 ------------- 7 files changed, 162 deletions(-) delete mode 100644 nginx/temp_vhosts/airport.conf delete mode 100644 nginx/temp_vhosts/consul.conf delete mode 100644 nginx/temp_vhosts/minio.conf delete mode 100644 nginx/temp_vhosts/minioconsole.conf delete mode 100644 nginx/temp_vhosts/oidcservice.conf delete mode 100644 nginx/temp_vhosts/upstream.conf delete mode 100644 nginx/temp_vhosts/xxljob.conf diff --git a/nginx/temp_vhosts/airport.conf b/nginx/temp_vhosts/airport.conf deleted file mode 100644 index 9b41a40..0000000 --- a/nginx/temp_vhosts/airport.conf +++ /dev/null @@ -1,49 +0,0 @@ - server - { - listen 80; - listen 443 ssl; - server_name airport-bazhong.t-aaron.com; - root /data/tuoheng_airport_web/dist; - - # SSL证书配置 - ssl_certificate /etc/nginx/t-aaron.com.pem; - ssl_certificate_key /etc/nginx/t-aaron.com.key; - ssl_session_timeout 5m; - 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; - - # 开启gzip功能 - gzip on; - gzip_min_length 10k; - gzip_comp_level 9; - gzip_types text/plain text/css application/javascript application/x-javascript text/javascript application/xml; - gzip_vary on; - gzip_disable "MSIE [1-6]\."; - - location /{ - try_files $uri $uri/ @router; - index index.html; - } - - location @router{ - rewrite ^.*$ /index.html last; - } - - location /airport { - proxy_pass http://gatewayService/airport; - proxy_set_header Host $host; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - } - - location /permission { - proxy_pass http://airportService/permission; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - } - } diff --git a/nginx/temp_vhosts/consul.conf b/nginx/temp_vhosts/consul.conf deleted file mode 100644 index c948825..0000000 --- a/nginx/temp_vhosts/consul.conf +++ /dev/null @@ -1,21 +0,0 @@ - -server { - listen 80; - listen 443 ssl; - server_name consul-bazhong.t-aaron.com; - - ssl_certificate /etc/nginx/t-aaron.com.pem; - ssl_certificate_key /etc/nginx/t-aaron.com.key; - ssl_session_timeout 5m; - 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 / { - proxy_pass http://CONSUL_bazhong:8500; - proxy_set_header Host $host; - 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; - } -} diff --git a/nginx/temp_vhosts/minio.conf b/nginx/temp_vhosts/minio.conf deleted file mode 100644 index c3f18bc..0000000 --- a/nginx/temp_vhosts/minio.conf +++ /dev/null @@ -1,20 +0,0 @@ - -server { - listen 80; - listen 443 ssl; - server_name minio-bazhong.t-aaron.com; - - ssl_certificate /etc/nginx/t-aaron.com.pem; - ssl_certificate_key /etc/nginx/t-aaron.com.key; - ssl_session_timeout 5m; - 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 / { - proxy_set_header Host $http_host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_pass http://MINIO_bazhong:9000; - } -} diff --git a/nginx/temp_vhosts/minioconsole.conf b/nginx/temp_vhosts/minioconsole.conf deleted file mode 100644 index a57b1cf..0000000 --- a/nginx/temp_vhosts/minioconsole.conf +++ /dev/null @@ -1,20 +0,0 @@ - -server { - listen 80; - listen 443 ssl; - server_name minioconsole-bazhong.t-aaron.com; - - ssl_certificate /etc/nginx/t-aaron.com.pem; - ssl_certificate_key /etc/nginx/t-aaron.com.key; - ssl_session_timeout 5m; - 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 / { - proxy_set_header Host $http_host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_pass http://MINIO_bazhong:9001; - } -} diff --git a/nginx/temp_vhosts/oidcservice.conf b/nginx/temp_vhosts/oidcservice.conf deleted file mode 100644 index 323a394..0000000 --- a/nginx/temp_vhosts/oidcservice.conf +++ /dev/null @@ -1,24 +0,0 @@ -server { - listen 80; - listen 443 ssl; - server_name oidc-bazhong.t-aaron.com; - - # SSL证书配置 - ssl_certificate /etc/nginx/t-aaron.com.pem; - ssl_certificate_key /etc/nginx/t-aaron.com.key; - ssl_session_timeout 5m; - 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 / { - proxy_pass http://OIDC-SERVERbazhong:8090; - proxy_set_header Host $host; - 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_redirect http://oidc-bazhong.t-aaron.com https://oidc-bazhong.t-aaron.com:2443; - } -} diff --git a/nginx/temp_vhosts/upstream.conf b/nginx/temp_vhosts/upstream.conf deleted file mode 100644 index 4d0bb59..0000000 --- a/nginx/temp_vhosts/upstream.conf +++ /dev/null @@ -1,7 +0,0 @@ -upstream gatewayService { - server GATEWAYbazhong:9011; -} - -upstream airportService { - server AIRPORTbazhong:9060; -} diff --git a/nginx/temp_vhosts/xxljob.conf b/nginx/temp_vhosts/xxljob.conf deleted file mode 100644 index a8fc8df..0000000 --- a/nginx/temp_vhosts/xxljob.conf +++ /dev/null @@ -1,21 +0,0 @@ -server { - listen 80; - listen 443 ssl; - server_name xxljob-bazhong.t-aaron.com; - - # SSL证书配置 - ssl_certificate /etc/nginx/t-aaron.com.pem; - ssl_certificate_key /etc/nginx/t-aaron.com.key; - ssl_session_timeout 5m; - 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 / { - proxy_pass http://XXL_JOB_bazhong:8080; - proxy_set_header Host $host; - 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; - } -} -