This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
2021-10-26 11:01:15 +00:00
|
|
|
lua_shared_dict dnslink 10m;
|
|
|
|
|
2021-08-27 12:15:22 +00:00
|
|
|
server {
|
|
|
|
listen 80 default_server;
|
|
|
|
|
|
|
|
include /etc/nginx/conf.d/server/server.dnslink;
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 443 default_server;
|
|
|
|
|
|
|
|
ssl_certificate /etc/ssl/local-certificate.crt;
|
|
|
|
ssl_certificate_key /etc/ssl/local-certificate.key;
|
|
|
|
|
2022-03-29 10:53:21 +00:00
|
|
|
set_by_lua_block $skynet_portal_domain { return "{{PORTAL_DOMAIN}}" }
|
|
|
|
set_by_lua_block $skynet_server_domain {
|
|
|
|
-- fall back to portal domain if server domain is not defined
|
|
|
|
if "{{SERVER_DOMAIN}}" == "" then
|
|
|
|
return "{{PORTAL_DOMAIN}}"
|
|
|
|
end
|
|
|
|
return "{{SERVER_DOMAIN}}"
|
|
|
|
}
|
|
|
|
|
2021-08-27 12:15:22 +00:00
|
|
|
include /etc/nginx/conf.d/server/server.dnslink;
|
|
|
|
}
|