atomaka.com/nginx/default.conf.template

32 lines
644 B
Text
Raw Permalink Normal View History

2023-02-17 21:51:53 -05:00
server {
listen 80;
listen [::]:80;
server_name ${REDIRECT_DOMAIN};
return 301 $scheme://${DOMAIN}$request_uri;
}
server {
listen 80;
listen [::]:80;
server_name ${DOMAIN};
#access_log /var/log/nginx/host.access.log main;
#error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
location ~ (\.well-known/|\@atomaka) {
return 302 $scheme://pub.atomaka.com$request_uri;
}
location = /50x.html {
root /usr/share/nginx/html;
}
}