mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 17:54:08 -05:00
todo: finish wishthis service
This commit is contained in:
parent
2c168c0bfa
commit
887ad90ac7
1 changed files with 34 additions and 0 deletions
34
modules/services/wishthis/default.nix
Normal file
34
modules/services/wishthis/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{config, ...}: {
|
||||
virtualisation.oci-containers = {
|
||||
backend = "podman";
|
||||
containers = {
|
||||
"wishthis" = {
|
||||
image = "wishthis:latest";
|
||||
extraOptions = [
|
||||
"--ip=10.88.0.15"
|
||||
];
|
||||
};
|
||||
"wishthis-db" = {
|
||||
image = "mariadb:latest";
|
||||
extraOptions = [
|
||||
"--ip=10.88.0.16"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
recommendedProxySettings = true;
|
||||
virtualHosts = {
|
||||
"wishlist.wanderingcrow.net" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "wishlist.wanderingcrow.net";
|
||||
locations."/" = {
|
||||
proxyPass = "http://10.88.0.15:80";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue