diff --git a/hosts/vulpecula-vps/configuration.nix b/hosts/vulpecula-vps/configuration.nix index 2735c20..3742642 100644 --- a/hosts/vulpecula-vps/configuration.nix +++ b/hosts/vulpecula-vps/configuration.nix @@ -56,6 +56,11 @@ in { enable = true; recommendedProxySettings = true; recommendedTlsSettings = true; + virtualHosts."84.247.186.214" = { + addSSL = true; + enableACME = true; + root = inputs.vulpecula-zone.packages.x86_64-linux.default; + }; virtualHosts."vulpecula.zone" = { addSSL = true; enableACME = true; diff --git a/hosts/vulpecula-vps/thymis.nix b/hosts/vulpecula-vps/thymis.nix index 4235700..6aabb22 100644 --- a/hosts/vulpecula-vps/thymis.nix +++ b/hosts/vulpecula-vps/thymis.nix @@ -13,13 +13,13 @@ system-binfmt-x86_64-enable = false; # enables emulation of x86_64 binaries, default is false repo-path = "/var/lib/thymis/repository"; # directory where the controller will store the repository holding the project database-url = "sqlite:////var/lib/thymis/thymis.sqlite"; # URL of the database - base-url = "https://thymis.vulpecula.zone/"; # base URL of the controller, how it will be accessed from the outside + base-url = "https://wallabag.vulpecula.zone/"; # base URL of the controller, how it will be accessed from the outside auth-basic = true; # whether to enable authentication using a basic username/password auth-basic-username = "admin"; # username for basic authentication auth-basic-password-file = "/var/lib/thymis/auth-basic-password"; # file containing the password for basic authentication # content will be automatically generated if it does not exist listen-host = "127.0.0.1"; # host on which the controller listens for incoming connections - listen-port = 8000; # port on which the controller listens for incoming connections + listen-port = 62105; # port on which the controller listens for incoming connections nginx-vhost-enable = false; # whether to enable the Nginx virtual host nginx-vhost-name = "wallabag.vulpecula.zone"; # name of the Nginx virtual host }; @@ -27,7 +27,8 @@ # Configure the Nginx virtual host services.nginx = { virtualHosts."wallabag.vulpecula.zone" = { - serverName = "wallabag.vulpecula.zone"; + # serverName = "wallabag.vulpecula.zone"; + locations."/".proxyPass = "http://localhost:${toString config.services.thymis-controller.listen-port}"; enableACME = true; forceSSL = true; };