{ config, pkgs, ... }: { services.tinder-api-wrapper = { enable = true; port = 8080; # default port apiEndpoint = "https://api.gotinder.com"; }; services.nginx.virtualHosts."tinder.cloonar.com" = { forceSSL = true; enableACME = true; acmeRoot = null; locations."/" = { proxyPass = "http://127.0.0.1:8080"; proxyWebsockets = true; extraConfig = "proxy_set_header X-Forwarded-Proto 'https';" + "proxy_set_header X-Forwarded-Ssl on;" + "proxy_connect_timeout 300;" + "proxy_send_timeout 300;" + "proxy_read_timeout 300;" + "send_timeout 300;" ; }; }; }