Kapisi/roles/WebServer/files/conf.d/Core/aaa_default.conf

48 lines
1.4 KiB
Plaintext
Raw Normal View History

2020-10-08 16:33:19 -05:00
server {
2022-07-02 10:24:10 -05:00
listen 443 ssl http2;
2020-10-08 16:33:19 -05:00
server_name default_server;
include sec.conf;
include default.csp.conf;
location /
{
2022-07-02 10:24:10 -05:00
rewrite ^/martialarts(\/*)$ /assets/martialarts/index.html;
2022-09-15 14:23:34 -05:00
rewrite /shadowarch /AniNIX/ShadowArch/raw/branch/main/EtcFiles/shadowarch
2022-07-02 10:24:10 -05:00
location /aninix.xml {
proxy_hide_header Content-Type;
add_header content-type "application/atom+xml";
rewrite /aninix.xml /AniNIX/Wiki/raw/branch/main/rss/aninix.xml;
}
location /martialarts/maqotw.xml {
proxy_hide_header Content-Type;
add_header content-type "application/atom+xml";
rewrite /martialarts/maqotw.xml /AniNIX/Wiki/raw/branch/main/rss/maqotw.xml;
}
2020-10-08 16:33:19 -05:00
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:3000;
}
2022-07-02 10:24:10 -05:00
location /whatismyip
{
include ../conf.d/fastcgi.config;
root /usr/share/webapps/aninix/;
location ~* whatismyip {
try_files $uri /whatismyip.php;
expires max;
}
}
location /blackpage
{
root /usr/share/webapps/aninix/;
try_files $uri /blackpage.html;
}
2022-09-15 14:23:34 -05:00
2022-07-02 10:24:10 -05:00
include letsencrypt.conf;
2020-10-08 16:33:19 -05:00
}