fix(core): update
This commit is contained in:
		| @@ -68,24 +68,16 @@ export let getBaseConfigString = (defaultProxy: string) => { | ||||
| 				# to upstream servers that are preserved in the cache of each worker process. When | ||||
| 				# this number is exceeded, the least recently used connections are closed. | ||||
| 				listen *:80 default_server; | ||||
| 				server_name selfsigned.git.zone | ||||
| 				rewrite        ^ ${defaultProxy} permanent; | ||||
| 			} | ||||
| 	 | ||||
| 			server { | ||||
| 				listen *:443 ssl default_server; | ||||
| 				server_name selfsigned.git.zone | ||||
| 				ssl_certificate ${paths.nginxHostDirPath}/default.public.pem; | ||||
| 				ssl_certificate_key ${paths.nginxHostDirPath}/default.private.pem; | ||||
| 				location / { | ||||
| 					proxy_http_version      1.1; | ||||
| 					proxy_buffering         off; | ||||
| 					proxy_redirect					off; | ||||
| 					proxy_set_header        X-Real-IP $remote_addr; | ||||
| 					proxy_set_header        X-Forwarded-For $remote_addr; | ||||
| 					proxy_set_header        X-Forwarded-Proto $scheme; | ||||
| 					proxy_next_upstream error timeout http_404 http_429 http_500 http_502; | ||||
| 					proxy_next_upstream_tries 5; | ||||
| 					proxy_pass              ${defaultProxy}; | ||||
| 				} | ||||
| 				rewrite        ^ ${defaultProxy} permanent; | ||||
| 			} | ||||
|  | ||||
| 			include ${paths.nginxHostDirPath}/*.conf; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user