mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-12 02:04:09 -05:00
deny all rules
This commit is contained in:
parent
d46e581ddf
commit
8fb8e39de4
5 changed files with 21 additions and 0 deletions
|
|
@ -37,6 +37,11 @@ in
|
|||
enable = true;
|
||||
recommendedProxySettings = true;
|
||||
virtualHosts = {
|
||||
extraConfig = ''
|
||||
allow 192.168.0.0/16;
|
||||
allow 10.8.0.0/24;
|
||||
deny all;
|
||||
'';
|
||||
"bar.wanderingcrow.net" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "bar.wanderingcrow.net";
|
||||
|
|
|
|||
|
|
@ -35,6 +35,11 @@ in
|
|||
appKeyFile = config.sops.secrets."bookstack/key".path;
|
||||
nginx = {
|
||||
forceSSL = true;
|
||||
extraConfig = ''
|
||||
allow 192.168.0.0/16;
|
||||
allow 10.8.0.0/24;
|
||||
deny all;
|
||||
'';
|
||||
useACMEHost = "bookstack.wanderingcrow.net";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,6 +7,11 @@ lib.mkIf config.user.overseer.enable {
|
|||
services.nginx.virtualHosts."grocy.wanderingcrow.net" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "grocy.wanderingcrow.net";
|
||||
extraConfig = ''
|
||||
allow 192.168.0.0/16;
|
||||
allow 10.8.0.0/24;
|
||||
deny all;
|
||||
'';
|
||||
};
|
||||
|
||||
services.grocy = {
|
||||
|
|
|
|||
|
|
@ -26,6 +26,11 @@ lib.mkIf config.user.overseer.enable {
|
|||
forceSSL = true;
|
||||
useACMEHost = "homebox.wanderingcrow.net";
|
||||
locations."/" = {
|
||||
extraConfig = ''
|
||||
allow 192.168.0.0/16;
|
||||
allow 10.8.0.0/24;
|
||||
deny all;
|
||||
'';
|
||||
proxyPass = "http://localhost:7745";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ lib.mkIf config.user.overseer.enable {
|
|||
locations."/" = {
|
||||
extraConfig = ''
|
||||
allow 192.168.0.0/16;
|
||||
allow 10.8.0.0/24;
|
||||
deny all;
|
||||
'';
|
||||
proxyPass = "http://localhost:8082";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue