mirror of
https://github.com/ordinary-dev/nixos-config.git
synced 2024-09-19 19:30:28 +05:00
feat: update my website to v0.8.0, configure redirect from www
This commit is contained in:
parent
9c76c57d9e
commit
16e61fb814
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue