Skip to content

Commit a0b32f8

Browse files
committed
machine: deque: Setup nginx with rtcp.myme.no
1 parent b34afdb commit a0b32f8

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

machines/deque.nix

+28
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,34 @@ in {
3030
};
3131
};
3232

33+
# Network
34+
networking.firewall.allowedTCPPorts = [ 80 443 ];
35+
36+
# Nginx
37+
services.nginx = {
38+
enable = true;
39+
upstreams.rtcp.servers = { "127.0.0.1:8000" = { }; };
40+
virtualHosts = {
41+
"rtcp.myme.no" = {
42+
enableACME = true;
43+
forceSSL = true;
44+
locations."/" = {
45+
proxyPass = "http://rtcp";
46+
proxyWebsockets = true;
47+
};
48+
};
49+
};
50+
};
51+
52+
# ACME
53+
security.acme = {
54+
acceptTerms = true;
55+
defaults.email = "mm@myme.no";
56+
};
57+
58+
# OCI
59+
virtualisation.podman.enable = true;
60+
3361
# Security
3462
security = {
3563
sudo.execWheelOnly = true;

0 commit comments

Comments
 (0)