etc-configs/nginx/conf.d/librex.nadeko.net.conf
2024-01-16 15:57:10 -03:00

41 lines
1.1 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

server {
access_log /var/log/nginx/librex.nadeko.net.access.log;
server_name librex.zzls.xyz librex.nadeko.net;
include configs/general.conf;
include configs/security.conf;
location / {
add_header Content-Type text/plain;
return 200 "LibreX is now deprecated, if you come from the hnhx/LibreX repository and want to try LibreX, you should use LibreY, a fork of LibreY maintained by a few individuals. hnhx just vanished without a trace.
\t https://github.com/Ahwxorg/librey
You can also try using 4get if you want something fast and simple like LibreY
\t Main instance:\t https://4get.ca
\t My Instance:\t https://4get.nadeko.net
\t Instances:\t https://4get.ca/instances
Good luck! (´ ∀ ` *)";
}
listen 443 ssl;
}
server {
if ($host = librex.zzls.xyz) {
return 301 https://$host$request_uri;
}
if ($host = zzls.xyz) {
return 301 https://$host$request_uri;
}
if ($host = librex.nadeko.net) {
return 301 https://$host$request_uri;
}
if ($host = nadeko.net) {
return 301 https://$host$request_uri;
}
server_name librex.zzls.xyz librex.nadeko.net;
listen 80;
return 404;
}