150 lines
		
	
	
		
			5.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
		
		
			
		
	
	
			150 lines
		
	
	
		
			5.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
|   | worker_processes  1; | ||
|  | events { | ||
|  |     worker_connections  1024; | ||
|  | } | ||
|  | http { | ||
|  |     include       mime.types; | ||
|  |     default_type  application/octet-stream; | ||
|  |     sendfile        on; | ||
|  |     keepalive_timeout  65; | ||
|  |     gzip  on; | ||
|  |     gzip_types text/plain application/javascript   application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png; | ||
|  |     gzip_disable "MSIE [1-6]\."; | ||
|  |     gzip_min_length 1k; | ||
|  |     gzip_buffers 4 16k; | ||
|  |     gzip_comp_level 2; | ||
|  |     client_max_body_size 10M; | ||
|  | 
 | ||
|  |     include /data/tengine/conf/vhosts/*.conf; | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  |     upstream admin_backend { | ||
|  |         server 127.0.0.1:8080; | ||
|  |         server 172.24.16.7:8080; | ||
|  |     } | ||
|  | 
 | ||
|  |     server { | ||
|  |         listen 443 ssl; | ||
|  |         server_name admin.scalelink.cn; | ||
|  |         ssl_certificate  /data/tengine/conf/certificate/STAR_scalelink_cn_integrated.crt; | ||
|  |         ssl_certificate_key /data/tengine/conf/certificate/STAR_scalelink_cn.key; | ||
|  |         ssl_session_timeout 5m; | ||
|  |         ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; | ||
|  |         ssl_protocols TLSv1.2 TLSv1.3; | ||
|  |         ssl_prefer_server_ciphers on; | ||
|  |         location / { | ||
|  |             root  /data/tengine/html/fly_moon_web/dist; | ||
|  |             index  index.html index.htm; | ||
|  |             try_files $uri $uri/ /index.html; | ||
|  |         } | ||
|  |         error_page   500 502 503 504  /50x.html; | ||
|  |         location = /50x.html { | ||
|  |             root   html; | ||
|  |         } | ||
|  |         location ^~ /prod-api { | ||
|  |              client_max_body_size 100m; | ||
|  |              proxy_pass   http://admin_backend; | ||
|  |              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_connect_timeout 3s; | ||
|  |              proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504; | ||
|  | 
 | ||
|  |         } | ||
|  |         location /prod-api/monitor/job { | ||
|  |             proxy_pass         http://127.0.0.1:8061$uri; | ||
|  |             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     off; | ||
|  |         } | ||
|  |     } | ||
|  |     server { | ||
|  |         listen 80; | ||
|  |         server_name admin.scalelink.cn; | ||
|  |         return 301 https://$host$request_uri; | ||
|  |     } | ||
|  | 		        		        		                                                                                                                                                                                  		                                                                                                                                                                                                                                                                                                            		        		        		                                                                                                                                                                                                                                                                                                               | ||
|  | 
 | ||
|  | 
 | ||
|  |     server { | ||
|  | 	    listen 443 ssl; | ||
|  |   	    server_name admin.deeplink.media; | ||
|  |    	    ssl_certificate  /data/tengine/conf/certificate/deeplink.media_bundle.crt; | ||
|  |       	ssl_certificate_key /data/tengine/conf/certificate/deeplink.media.key; | ||
|  |        	ssl_session_timeout 5m; | ||
|  |         ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; | ||
|  |         ssl_protocols TLSv1.2 TLSv1.3; | ||
|  |         ssl_prefer_server_ciphers on; | ||
|  |         location / { | ||
|  |             root  /data/tengine/html/fly_moon_web/dist; | ||
|  |             index  index.html index.htm; | ||
|  |             try_files $uri $uri/ /index.html; | ||
|  |         } | ||
|  |         error_page   500 502 503 504  /50x.html; | ||
|  |         location = /50x.html { | ||
|  |             root   html; | ||
|  |         } | ||
|  |         location ^~ /prod-api { | ||
|  |             client_max_body_size 100m; | ||
|  | 	        proxy_pass   http://admin_backend; | ||
|  | 	        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_connect_timeout 3s; | ||
|  |             proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504; | ||
|  | 	    } | ||
|  | 	    location /prod-api/monitor/job { | ||
|  |             proxy_pass         http://127.0.0.1:8050$uri; | ||
|  |             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     off; | ||
|  |         } | ||
|  |     } | ||
|  |     server { | ||
|  |         listen 80; | ||
|  |         server_name admin.deeplink.media; | ||
|  |         return 301 https://$host$request_uri; | ||
|  |     } | ||
|  |   | ||
|  | 
 | ||
|  | 
 | ||
|  |     server { | ||
|  |         listen 443 ssl; | ||
|  |         server_name api.jennie.im; | ||
|  |         ssl_certificate      /data/tengine/conf/certificate/api.jennie.im_bundle.crt; | ||
|  |         ssl_certificate_key  /data/tengine/conf/certificate/api.jennie.im.key; | ||
|  |         ssl_session_timeout  5m; | ||
|  |         ssl_ciphers          ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; | ||
|  |         ssl_protocols        TLSv1.2 TLSv1.3; | ||
|  |         ssl_prefer_server_ciphers on; | ||
|  |         error_page 500 502 503 504 /50x.html; | ||
|  |         location = /50x.html { | ||
|  |             root html; | ||
|  |         } | ||
|  |         location ^~ /opensearch/ { | ||
|  |             #proxy_pass http://127.0.0.1:8050/prod-api/opensearch/; | ||
|  |             proxy_pass http://127.0.0.1:8050/prod-api/opensearch/; | ||
|  | 
 | ||
|  |             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 off; | ||
|  |         } | ||
|  |     } | ||
|  |     server { | ||
|  |         listen 80; | ||
|  |         server_name api.jennie.im; | ||
|  |         return 301 https://$host$request_uri; | ||
|  |     } | ||
|  |   | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | } |