-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added nginx reverse proxy for remotes
- Loading branch information
Showing
4 changed files
with
84 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: ingress-nginx-controller | ||
data: | ||
http-snippet: | | ||
{{ range $targetId, $targetIp := .Targets }} | ||
server { | ||
server_name *.{{ $.Name }}{{ $targetId }}.{{ $.Name }}.{{ $.Domain }}; | ||
|
||
listen 80; | ||
listen [::]:80; | ||
|
||
location / { | ||
access_log off; | ||
client_max_body_size 8m; | ||
|
||
proxy_connect_timeout 5s; | ||
proxy_send_timeout 60s; | ||
proxy_read_timeout 60s; | ||
|
||
proxy_buffering off; | ||
proxy_buffer_size 4k; | ||
proxy_buffers 4 4k; | ||
|
||
proxy_max_temp_file_size 1024m; | ||
|
||
proxy_request_buffering on; | ||
proxy_http_version 1.1; | ||
|
||
proxy_cookie_domain off; | ||
proxy_cookie_path off; | ||
|
||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_pass http://{{ $targetIp }}/; | ||
} | ||
} | ||
{{ end }} |