mirror of
https://github.com/ordinary-dev/nixos-config.git
synced 2024-09-19 19:30:28 +05:00
feat: host my new website
This commit is contained in:
parent
2cf1163bdc
commit
bc9e82898a
|
@ -32,6 +32,8 @@
|
|||
|
||||
./monitoring/grafana.nix
|
||||
./monitoring/prometheus.nix
|
||||
|
||||
./websites/ss.nix
|
||||
];
|
||||
|
||||
nix = {
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
default 1;
|
||||
}
|
||||
access_log /var/log/nginx/access.log combined if=$loggable;
|
||||
|
||||
server_names_hash_bucket_size 128;
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
13
nixos/websites/ss.nix
Normal file
13
nixos/websites/ss.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
virtualisation.oci-containers.containers.ss = {
|
||||
autoStart = true;
|
||||
image = "git.comfycamp.space/lumin/summer-squad:v0.0.2";
|
||||
ports = ["55020:8080"];
|
||||
};
|
||||
|
||||
# This site is not secret.
|
||||
services.nginx.virtualHosts."summerqbhooezyv5wg2v7rj3v44ig4o3yl3pziiowgg6ynkqwrhif7id.onion" = {
|
||||
locations."/".proxyPass = "http://127.0.0.1:55020";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue