diff options
| author | schererleander <leander@schererleander.de> | 2025-06-04 01:34:29 +0200 |
|---|---|---|
| committer | schererleander <leander@schererleander.de> | 2025-06-04 01:34:29 +0200 |
| commit | f0f36d74142111967bb4157d11139d54cbd86fbd (patch) | |
| tree | c6493f6d2b2c732fa24c6800fc86189dce389c5c /hosts | |
| parent | 54922b7cd588ac058842caa3b057c7b0e678eabb (diff) | |
fallback to index.hmtl for react routes
Diffstat (limited to 'hosts')
| -rw-r--r-- | hosts/vps/configuration.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hosts/vps/configuration.nix b/hosts/vps/configuration.nix index 472b4aa..1c873e7 100644 --- a/hosts/vps/configuration.nix +++ b/hosts/vps/configuration.nix @@ -72,6 +72,11 @@ root = "/var/www/site"; forceSSL = true; enableACME = true; + locations = { + "/" = { + tryFiles = "$uri $uri/ /index.html"; + }; + }; }; virtualHosts."cloud.schererleander.de" = { sslCertificate = "/etc/ssl/certs/schererleander.fullchain.pem"; |
