]> git.ipfire.org Git - thirdparty/cups.git/blame - templates/edit-config.tmpl.in
Load cups into easysw/current.
[thirdparty/cups.git] / templates / edit-config.tmpl.in
CommitLineData
ef416fc2 1<SCRIPT TYPE="text/javascript">
2function reset_config()
3{
4 document.cups.CUPSDCONF.value =
5"# Log general information in error_log - change \\"info\\" to \\"debug\\" for\\n" +
6"# troubleshooting...\\n" +
7"LogLevel info\\n" +
8"\\n" +
9"\\n" +
10"# Administrator user group...\\n" +
bd7854cb 11"SystemGroup @CUPS_SYSTEM_GROUPS@\\n" +
ef416fc2 12"\\n" +
13"\\n" +
14"# Only listen for connections from the local machine.\\n" +
15"Listen 127.0.0.1:@DEFAULT_IPP_PORT@\\n" +
16"@CUPS_LISTEN_DOMAINSOCKET@\\n" +
17"\\n" +
18"\\n" +
19"# Show shared printers on the local network.\\n" +
20"Browsing On\\n" +
21"BrowseOrder allow,deny\\n" +
22"BrowseAllow @LOCAL\\n" +
23"\\n" +
24"\\n" +
4744bd90 25"# Authenticate against system accounts by default...\\n" +
26"DefaultAuthType Basic\\n" +
27"\\n" +
ef416fc2 28"# Restrict access to the server...\\n" +
29"<Location />\\n" +
30" Order allow,deny\\n" +
31" Allow localhost\\n" +
32"</Location>\\n" +
33"\\n" +
34"# Restrict access to the admin pages...\\n" +
35"<Location /admin>\\n" +
36" Order allow,deny\\n" +
37" Allow localhost\\n" +
38"</Location>\\n" +
39"\\n" +
40"# Restrict access to configuration files...\\n" +
41"<Location /admin/conf>\\n" +
42" AuthType Basic\\n" +
43" Require user @SYSTEM\\n" +
44" Order allow,deny\\n" +
45" Allow localhost\\n" +
46"</Location>\\n" +
47"\\n" +
ef416fc2 48"# Set the default printer/job policies...\\n" +
49"<Policy default>\\n" +
50" # Job-related operations must be done by the owner or an adminstrator...\\n" +
51" <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>\\n" +
52" Require user @OWNER @SYSTEM\\n" +
53" Order deny,allow\\n" +
54" </Limit>\\n" +
55"\\n" +
56" # All administration operations require an adminstrator to authenticate...\\n" +
57" <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>\\n" +
58" AuthType Basic\\n" +
59" Require user @SYSTEM\\n" +
60" Order deny,allow\\n" +
61" </Limit>\\n" +
62"\\n" +
63" # Only the owner or an administrator can cancel or authenticate a job...\\n" +
64" <Limit Cancel-Job CUPS-Authenticate-Job>\\n" +
65" Require user @OWNER @SYSTEM\\n" +
66" Order deny,allow\\n" +
67" </Limit>\\n" +
68"\\n" +
69" <Limit All>\\n" +
70" Order deny,allow\\n" +
71" </Limit>\\n" +
72"</Policy>\\n";
73}
74</SCRIPT>
75
76<H2 CLASS="title">Server Configuration File</H2>
77
78<FORM NAME="cups" METHOD="POST" ACTION="/admin/">
79
80<INPUT TYPE="HIDDEN" NAME="OP" VALUE="config-server">
81
82<TEXTAREA NAME="CUPSDCONF" COLS="80" ROWS="25">{CUPSDCONF}</TEXTAREA>
83
757d2cad 84<P><INPUT TYPE="IMAGE" SRC="/images/button-save-changes.gif"
ef416fc2 85ALT="Save Changes"> <A
86HREF="javascript:reset_config();"><IMG
757d2cad 87SRC="/images/button-use-default-config.gif" CLASS="button"
ef416fc2 88ALT="Use Default Configuration File"></A></P>
89
90</FORM>