Compare commits

..

3 Commits

Author SHA1 Message Date
Giulio De Pasquale
5e6f60b8d5 flake: lock update 2023-11-17 13:18:41 +01:00
Giulio De Pasquale
3eee95dbba plex: allow LAN and Tailscale traffic 2023-11-17 13:18:22 +01:00
Giulio De Pasquale
dd7189cca0 libreddit: allow WAN traffic 2023-11-16 17:42:55 +01:00
3 changed files with 18 additions and 15 deletions

18
flake.lock generated
View File

@ -7,11 +7,11 @@
]
},
"locked": {
"lastModified": 1695108154,
"narHash": "sha256-gSg7UTVtls2yO9lKtP0yb66XBHT1Fx5qZSZbGMpSn2c=",
"lastModified": 1699748081,
"narHash": "sha256-MOmMapBydd7MTjhX4eeQZzKlCABWw8W6iSHSG4OeFKE=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "07682fff75d41f18327a871088d20af2710d4744",
"rev": "04bac349d585c9df38d78e0285b780a140dc74a4",
"type": "github"
},
"original": {
@ -23,11 +23,11 @@
},
"nixos-unstable": {
"locked": {
"lastModified": 1697723726,
"narHash": "sha256-SaTWPkI8a5xSHX/rrKzUe+/uVNy6zCGMXgoeMb7T9rg=",
"lastModified": 1699781429,
"narHash": "sha256-UYefjidASiLORAjIvVsUHG6WBtRhM67kTjEY4XfZOFs=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "7c9cc5a6e5d38010801741ac830a3f8fd667a7a0",
"rev": "e44462d6021bfe23dfb24b775cc7c390844f773d",
"type": "github"
},
"original": {
@ -39,11 +39,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1697891198,
"narHash": "sha256-ckL4NDWuZaxu+sMUPze98xQCdMUm+Q11Yb7DFasE/7E=",
"lastModified": 1700097215,
"narHash": "sha256-ODQ3gBTv1iHd7lG21H+ErVISB5wVeOhd/dEogOqHs/I=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "8643a0aff085eb3fbb27cb30c0e1af9585168fcb",
"rev": "9fb122519e9cd465d532f736a98c1e1eb541ef6f",
"type": "github"
},
"original": {

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, ... }:
let
domain = "reddit.giugl.io";
@ -11,6 +11,9 @@ in
architect.vhost.${domain} = {
dnsInterfaces = [ "lan" "tailscale" ];
locations."/".port = config.services.libreddit.port;
locations."/" = {
port = config.services.libreddit.port;
allowWAN = true;
};
};
}

View File

@ -23,10 +23,10 @@ in
inherit port;
proxyWebsockets = true;
# allowLan = true;
# allow = [
# tailscale.net
# ];
allowLan = true;
allow = [
tailscale.net
];
extraConfig = ''
#Some players don't reopen a socket and playback stops totally instead of resuming after an extended pause
send_timeout 100m;