Added script etc for ssl on lb
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
@@ -45,6 +45,27 @@ http {
|
||||
server {
|
||||
listen 443;
|
||||
|
||||
server_name staging.k3s.seyshiro.de *.staging.k3s.seyshiro.de
|
||||
|
||||
ssl_certificate /etc/nginx/ssl/staging_tls.crt;
|
||||
ssl_certificate_key /etc/nginx/ssl/staging_tls.key;
|
||||
|
||||
location / {
|
||||
proxy_pass https://k3s_servers_https;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443;
|
||||
|
||||
server_name production.k3s.seyshiro.de *.production.k3s.seyshiro.de
|
||||
|
||||
ssl_certificate /etc/nginx/ssl/production_tls.crt;
|
||||
ssl_certificate_key /etc/nginx/ssl/production_tls.key;
|
||||
|
||||
location / {
|
||||
proxy_pass https://k3s_servers_https;
|
||||
proxy_set_header Host $host;
|
||||
|
||||
Reference in New Issue
Block a user