feat: update my website to v0.8.0, configure redirect from www

This commit is contained in:
Ivan R. 2024-03-11 21:13:15 +05:00
parent 9c76c57d9e
commit 16e61fb814
No known key found for this signature in database
GPG key ID: 56C7BAAE859B302C

View file

@ -2,21 +2,23 @@
{
virtualisation.oci-containers.containers.comfycamp = {
autoStart = true;
image = "ghcr.io/ordinary-dev/comfycamp:v0.7.0";
image = "ghcr.io/ordinary-dev/comfycamp:v0.8.0";
ports = ["55007:80"];
};
services.nginx.virtualHosts."[201:80ed:6eeb:aea4:cdc0:c836:2831:f2dd]" = {
locations = {
"/".proxyPass = "http://127.0.0.1:55007";
};
locations."/".proxyPass = "http://127.0.0.1:55007";
};
services.nginx.virtualHosts."comfycamp.space" = {
useACMEHost = "comfycamp.space";
forceSSL = true;
locations = {
"/".proxyPass = "http://127.0.0.1:55007";
};
locations."/".proxyPass = "http://127.0.0.1:55007";
};
services.nginx.virtualHosts."www.comfycamp.space" = {
useACMEHost = "comfycamp.space";
forceSSL = true;
locations."/".return = "301 https://comfycamp.space$request_uri";
};
}