30 lines
803 B
Plaintext
30 lines
803 B
Plaintext
server {
|
|
listen 443 ssl http2;
|
|
server_name core.lab.ngtech.home;
|
|
|
|
ssl_certificate /etc/defguard/certs/core.crt;
|
|
ssl_certificate_key /etc/defguard/certs/core.key;
|
|
ssl_trusted_certificate /etc/defguard/certs/ca.crt;
|
|
|
|
location / {
|
|
proxy_pass http://localhost:8080;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
server_name enroll.lab.ngtech.home;
|
|
|
|
ssl_certificate /etc/defguard/certs/core.crt; # Reuse for simplicity
|
|
ssl_certificate_key /etc/defguard/certs/core.key;
|
|
ssl_trusted_certificate /etc/defguard/certs/ca.crt;
|
|
|
|
location / {
|
|
proxy_pass http://localhost:8080;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
}
|