25 lines
817 B
Plaintext
25 lines
817 B
Plaintext
server{
|
|
listen 443 ssl http2;
|
|
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
|
|
server_name admin.gbgobig.com;
|
|
ssl_certificate /opt/web/gobigSSL/admin.gbgobig.com.pem;
|
|
ssl_certificate_key /opt/web/gobigSSL/admin.gbgobig.com.key;
|
|
listen 80;
|
|
if ($scheme = http) {
|
|
return 301 https://$host:443$request_uri;
|
|
}
|
|
|
|
location /prod-api/{
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header REMOTE-HOST $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_pass http://localhost:8080/;
|
|
}
|
|
|
|
location / {
|
|
alias /opt/web/admin/;
|
|
index index.html index.htm;
|
|
try_files $uri $uri/ /index.html last;
|
|
}
|
|
} |