2022-09-28 03:16:04 +00:00
|
|
|
# NOTE: Felia is under Cox ISP, which blocks port 80 anyways.
|
|
|
|
# we're just going to leave it like this for now
|
|
|
|
# server {
|
|
|
|
# listen 80;
|
|
|
|
# listen [::]:80;
|
|
|
|
# server_name localhost;
|
|
|
|
# return 302 https://$server_name$request_uri;
|
|
|
|
# }
|
|
|
|
|
|
|
|
server {
|
|
|
|
# SSL configuration
|
|
|
|
listen 443 ssl http2;
|
|
|
|
listen [::]:443 ssl http2;
|
|
|
|
|
|
|
|
include /etc/nginx/ssl_params;
|
|
|
|
|
|
|
|
server_name pegasust.com;
|
2022-09-28 05:13:33 +00:00
|
|
|
root /var/www/pegasust.com/html;
|
2022-09-28 03:16:04 +00:00
|
|
|
index index.html index.htm index.nginx-debian.html;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
try_files $uri $uri/ =404;
|
|
|
|
}
|
2022-09-28 05:13:33 +00:00
|
|
|
location /vault/ {
|
|
|
|
proxy_pass http://localhost:8200;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
}
|
2022-11-14 11:47:42 +00:00
|
|
|
location /felia {
|
|
|
|
rewrite ^/felia(.*)$ https://felia.pegasust.com/$1 redirect;
|
|
|
|
}
|
|
|
|
location /c4c {
|
|
|
|
rewrite ^/c4c(.*)$ https://c4c.pegasust.com/$1 redirect;
|
|
|
|
}
|
2022-09-28 03:16:04 +00:00
|
|
|
}
|