diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2023-03-05 13:11:57 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2023-03-05 13:11:57 +0100 |
commit | 561046779758d2db6af5609b0a66aed134d86275 (patch) | |
tree | f8507735fcc2b0a6c3e700dc3eed9e3d8df3162f /hosts/vidhar/printing | |
parent | 3442fd12a9305905b9e77ac81cae25d6b5a91b18 (diff) | |
download | nixos-561046779758d2db6af5609b0a66aed134d86275.tar nixos-561046779758d2db6af5609b0a66aed134d86275.tar.gz nixos-561046779758d2db6af5609b0a66aed134d86275.tar.bz2 nixos-561046779758d2db6af5609b0a66aed134d86275.tar.xz nixos-561046779758d2db6af5609b0a66aed134d86275.zip |
...
Diffstat (limited to 'hosts/vidhar/printing')
-rw-r--r-- | hosts/vidhar/printing/default.nix | 50 |
1 files changed, 48 insertions, 2 deletions
diff --git a/hosts/vidhar/printing/default.nix b/hosts/vidhar/printing/default.nix index d844823b..55c55b37 100644 --- a/hosts/vidhar/printing/default.nix +++ b/hosts/vidhar/printing/default.nix | |||
@@ -78,10 +78,56 @@ in { | |||
78 | listenAddresses = [ | 78 | listenAddresses = [ |
79 | "*:631" | 79 | "*:631" |
80 | ]; | 80 | ]; |
81 | allowFrom = [ "all" ]; | 81 | logLevel = "all"; |
82 | extraConf = '' | 82 | extraConf = mkForce '' |
83 | ServerName printing | 83 | ServerName printing |
84 | ServerAlias 10.141.5.1 2a03:4000:52:ada:5::1 printing.vidhar.yggdrasil printing.vidhar.lan.yggdrasil | 84 | ServerAlias 10.141.5.1 2a03:4000:52:ada:5::1 printing.vidhar.yggdrasil printing.vidhar.lan.yggdrasil |
85 | |||
86 | DefaultEncryption Never | ||
87 | |||
88 | <Location /> | ||
89 | Order allow,deny | ||
90 | Allow from 10.0.0.0/8 | ||
91 | Satisfy any | ||
92 | </Location> | ||
93 | |||
94 | <Location /admin> | ||
95 | Order allow,deny | ||
96 | Allow from 10.0.0.0/8 | ||
97 | Satisfy any | ||
98 | </Location> | ||
99 | |||
100 | <Location /admin/conf> | ||
101 | Order allow,deny | ||
102 | Allow from 10.0.0.0/8 | ||
103 | Satisfy any | ||
104 | </Location> | ||
105 | |||
106 | <Policy default> | ||
107 | <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job> | ||
108 | Order allow,deny | ||
109 | Allow from 10.0.0.0/8 | ||
110 | Satisfy any | ||
111 | </Limit> | ||
112 | |||
113 | <Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default> | ||
114 | Order allow,deny | ||
115 | Allow from 10.0.0.0/8 | ||
116 | Satisfy any | ||
117 | </Limit> | ||
118 | |||
119 | <Limit Cancel-Job CUPS-Authenticate-Job> | ||
120 | Order allow,deny | ||
121 | Allow from 10.0.0.0/8 | ||
122 | Satisfy any | ||
123 | </Limit> | ||
124 | |||
125 | <Limit All> | ||
126 | Order allow,deny | ||
127 | Allow from 10.0.0.0/8 | ||
128 | Satisfy any | ||
129 | </Limit> | ||
130 | </Policy> | ||
85 | ''; | 131 | ''; |
86 | }; | 132 | }; |
87 | 133 | ||