22 lines
579 B
Nginx Configuration File
22 lines
579 B
Nginx Configuration File
events {}
|
|
|
|
http {
|
|
server {
|
|
listen 443 ssl;
|
|
server_name auth.example.test;
|
|
|
|
ssl_certificate /etc/tls/tls.crt;
|
|
ssl_certificate_key /etc/tls/tls.key;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
|
|
location / {
|
|
proxy_pass http://keycloak:8080;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
proxy_set_header X-Forwarded-Port 443;
|
|
proxy_set_header X-Forwarded-Proto https;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
}
|
|
}
|
|
}
|