]> git.ipfire.org Git - thirdparty/cups.git/blob - templates/edit-config.tmpl.in
Load cups into easysw/current.
[thirdparty/cups.git] / templates / edit-config.tmpl.in
1 <SCRIPT TYPE="text/javascript">
2 function 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" +
11 "SystemGroup @CUPS_SYSTEM_GROUPS@\\n" +
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" +
25 "# Restrict access to the server...\\n" +
26 "<Location />\\n" +
27 " Order allow,deny\\n" +
28 " Allow localhost\\n" +
29 "</Location>\\n" +
30 "\\n" +
31 "# Restrict access to the admin pages...\\n" +
32 "<Location /admin>\\n" +
33 " Order allow,deny\\n" +
34 " Allow localhost\\n" +
35 "</Location>\\n" +
36 "\\n" +
37 "# Restrict access to configuration files...\\n" +
38 "<Location /admin/conf>\\n" +
39 " AuthType Basic\\n" +
40 " Require user @SYSTEM\\n" +
41 " Order allow,deny\\n" +
42 " Allow localhost\\n" +
43 "</Location>\\n" +
44 "\\n" +
45 "# Authenticate against system accounts by default...\\n" +
46 "DefaultAuthType Basic\\n" +
47 "\\n" +
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
84 <P><INPUT TYPE="IMAGE" SRC="/images/save-changes.gif"
85 ALT="Save Changes"> <A
86 HREF="javascript:reset_config();"><IMG
87 SRC="/images/use-default-config.gif" CLASS="button"
88 ALT="Use Default Configuration File"></A></P>
89
90 </FORM>