-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx-site.conf
25 lines (22 loc) · 991 Bytes
/
nginx-site.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
server {
listen 443 ssl;
server_name your-domain.com;
ssl_certificate /etc/nginx/ssl/your-domain.crt; # Path to your SSL certificate
ssl_certificate_key /etc/nginx/ssl/your-domain.key; # Path to your SSL certificate key
# Location for the STIG Manager API
location / { #### <------ ADJUST THIS
proxy_pass http://localhost:54000; # Proxy pass to the API service
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
# Location for the STIG Manager main interface
location / {
proxy_pass http://localhost:8080; # Proxy pass to the main STIG Manager service
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}