Compare commits
2 commits
89e52b8a74
...
85da820b24
Author | SHA1 | Date | |
---|---|---|---|
|
85da820b24 | ||
|
53e06aa3d6 |
3 changed files with 42 additions and 1 deletions
|
@ -11,6 +11,7 @@
|
||||||
./_ssh.nix
|
./_ssh.nix
|
||||||
./_users.nix
|
./_users.nix
|
||||||
./dokuwiki.nix
|
./dokuwiki.nix
|
||||||
|
./thelounge.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./matterbridge.nix
|
./matterbridge.nix
|
||||||
./nginx.nix
|
./nginx.nix
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
};
|
};
|
||||||
networks = {
|
networks = {
|
||||||
"10-uplink" = {
|
"10-uplink" = {
|
||||||
name = "eth0";
|
name = "enp1s0";
|
||||||
DHCP = "no";
|
DHCP = "no";
|
||||||
address = [
|
address = [
|
||||||
"129.199.129.76/24"
|
"129.199.129.76/24"
|
||||||
|
|
40
machines/hackens-org/thelounge.nix
Normal file
40
machines/hackens-org/thelounge.nix
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
services.thelounge = {
|
||||||
|
enable = true;
|
||||||
|
port = 9000;
|
||||||
|
extraConfig = {
|
||||||
|
reverseProxy = true;
|
||||||
|
host = "127.0.0.1";
|
||||||
|
public = false;
|
||||||
|
prefetch = true;
|
||||||
|
fileUpload = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
defaults= {
|
||||||
|
name= "ulminfo";
|
||||||
|
host= "ulminfo.fr";
|
||||||
|
port= 3725;
|
||||||
|
password= "";
|
||||||
|
tls= true;
|
||||||
|
rejectUnauthorized= true;
|
||||||
|
join= "#hackens";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
services.nginx.enable = true;
|
||||||
|
services.nginx.virtualHosts."irc.hackens.org" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:9000";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
networking.firewall.allowedTCPPorts = [80 443];
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue