2020-12-23 19:54:51 +03:00
|
|
|
{ ... }: {
|
|
|
|
# services.nginx = {
|
|
|
|
# enable = true;
|
|
|
|
# enableReload = true;
|
|
|
|
# statusPage = true;
|
|
|
|
# recommendedGzipSettings = true;
|
|
|
|
# recommendedOptimisation = true;
|
|
|
|
# recommendedProxySettings = true;
|
|
|
|
# recommendedTlsSettings = true;
|
|
|
|
# virtualHosts."yusdacras-host.ydns.eu" = {
|
|
|
|
# # addSSL = true;
|
|
|
|
# # enableACME = true;
|
|
|
|
# listen = [
|
|
|
|
# { addr = "0.0.0.0"; port = 8080; }
|
|
|
|
# { addr = "[::]"; port = 8080; }
|
|
|
|
# # { addr = "0.0.0.0"; port = 8081; ssl = true; }
|
|
|
|
# ];
|
|
|
|
# locations = {
|
|
|
|
# "/matrix" = { proxyPass = "http://localhost:8000"; };
|
|
|
|
# "/page" = {
|
|
|
|
# root = "/var/www/yusdacras-host";
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
|
|
|
|
# security.acme = {
|
|
|
|
# acceptTerms = true;
|
|
|
|
# certs = {
|
|
|
|
# "yusdacras-host.ydns.eu".email = "y.bera003.06@protonmail.com";
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
|
2021-01-26 21:09:02 +03:00
|
|
|
# networking.firewall.allowedTCPPorts = [ 8000 8448 ];
|
2020-12-23 19:54:51 +03:00
|
|
|
}
|