source: apps/susidns/src/jsp/config.jsp @ f902a63

Last change on this file since f902a63 was f902a63, checked in by zzz <zzz@…>, 4 years ago

Console: Add Referrer-Policy header

  • Property mode set to 100644
File size: 5.5 KB
Line 
1<%
2/*
3 * Created on Sep 02, 2005
4 *
5 *  This file is part of susidns project, see http://susi.i2p/
6 * 
7 *  Copyright (C) 2005 <susi23@mail.i2p>
8 *
9 *  This program is free software; you can redistribute it and/or modify
10 *  it under the terms of the GNU General Public License as published by
11 *  the Free Software Foundation; either version 2 of the License, or
12 *  (at your option) any later version.
13 *
14 *  This program is distributed in the hope that it will be useful,
15 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
16 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 *  GNU General Public License for more details.
18 *
19 *  You should have received a copy of the GNU General Public License
20 *  along with this program; if not, write to the Free Software
21 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22 * 
23 * $Revision: 1.1 $
24 */
25
26    // http://www.crazysquirrel.com/computing/general/form-encoding.jspx
27    if (request.getCharacterEncoding() == null)
28        request.setCharacterEncoding("UTF-8");
29
30    response.setHeader("X-Frame-Options", "SAMEORIGIN");
31    response.setHeader("Content-Security-Policy", "default-src 'self'; style-src 'self' 'unsafe-inline'");
32    response.setHeader("X-XSS-Protection", "1; mode=block");
33    response.setHeader("X-Content-Type-Options", "nosniff");
34    response.setHeader("Referrer-Policy", "no-referrer");
35
36%>
37<%@page pageEncoding="UTF-8"%>
38<%@ page contentType="text/html" %>
39<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
40<jsp:useBean id="version" class="i2p.susi.dns.VersionBean" scope="application"/>
41<jsp:useBean id="cfg" class="i2p.susi.dns.ConfigBean" scope="session"/>
42<jsp:useBean id="base" class="i2p.susi.dns.BaseBean" scope="session" />
43<jsp:useBean id="intl" class="i2p.susi.dns.Messages" scope="application" />
44<jsp:setProperty name="cfg" property="*" />
45<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
46<html>
47<head>
48<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
49<title><%=intl._t("configuration")%> - susidns</title>
50<link rel="stylesheet" type="text/css" href="<%=base.getTheme()%>susidns.css?<%=net.i2p.CoreVersion.VERSION%>">
51</head>
52<body>
53<div class="page">
54<div id="logo">
55<a href="index"><img src="<%=base.getTheme()%>images/logo.png" alt="" title="<%=intl._t("Overview")%>" border="0"/></a>
56</div><hr>
57<div id="navi">
58<p>
59<%=intl._t("Address books")%>:
60<a href="addressbook?book=private"><%=intl._t("private")%></a> |
61<a href="addressbook?book=master"><%=intl._t("master")%></a> |
62<a href="addressbook?book=router"><%=intl._t("router")%></a> |
63<a href="addressbook?book=published"><%=intl._t("published")%></a> *
64<a href="subscriptions"><%=intl._t("Subscriptions")%></a> *
65<%=intl._t("Configuration")%> *
66<a href="index"><%=intl._t("Overview")%></a>
67</p>
68</div><hr>
69<div id="headline">
70<h3>${cfg.fileName}</h3>
71</div>
72<div id="messages">${cfg.messages}</div>
73<form method="POST" action="config">
74<div id="config">
75<input type="hidden" name="serial" value="${cfg.serial}" >
76<textarea name="config" rows="10" cols="80">${cfg.config}</textarea>
77</div>
78<div id="buttons">
79<input class="reload" type="submit" name="action" value="<%=intl._t("Reload")%>" >
80<input class="accept" type="submit" name="action" value="<%=intl._t("Save")%>" >
81</div>
82</form>
83<div id="help">
84<h3><%=intl._t("Hints")%></h3>
85<ol>
86<li>
87<%=intl._t("File and directory paths here are relative to the addressbook's working directory, which is normally ~/.i2p/addressbook/ (Linux) or %APPDATA%\\I2P\\addressbook\\ (Windows).")%>
88</li>
89<li>
90<%=intl._t("If you want to manually add lines to an addressbook, add them to the private or master addressbooks.")%>
91<%=intl._t("The router addressbook and the published addressbook are updated by the addressbook application.")%>
92</li>
93<li>
94<%=intl._t("When you publish your addressbook, ALL destinations from the master and router addressbooks appear there.")%>
95<%=intl._t("Use the private addressbook for private destinations, these are not published.")%>
96</li>
97</ol>
98<h3><%=intl._t("Options")%></h3>
99<ul>
100<li><b>subscriptions</b> -
101<%=intl._t("File containing the list of subscriptions URLs (no need to change)")%>
102</li>
103<li><b>update_delay</b> -
104<%=intl._t("Update interval in hours")%>
105</li>
106<li><b>published_addressbook</b> -
107<%=intl._t("Your public hosts.txt file (choose a path within your webserver document root)")%>
108</li>
109<li><b>router_addressbook</b> -
110<%=intl._t("Your hosts.txt (don't change)")%>
111</li>
112<li><b>master_addressbook</b> -
113<%=intl._t("Your personal addressbook, these hosts will be published")%>
114</li>
115<li><b>private_addressbook</b> -
116<%=intl._t("Your private addressbook, it is never published")%>
117</li>
118<li><b>proxy_port</b> -
119<%=intl._t("Port for your eepProxy (no need to change)")%>
120</li>
121<li><b>proxy_host</b> -
122<%=intl._t("Hostname for your eepProxy (no need to change)")%>
123</li>
124<li><b>should_publish</b> -
125<%=intl._t("Whether to update the published addressbook")%>
126</li>
127<li><b>etags</b> -
128<%=intl._t("File containing the etags header from the fetched subscription URLs (no need to change)")%>
129</li>
130<li><b>last_modified</b> -
131<%=intl._t("File containing the modification timestamp for each fetched subscription URL (no need to change)")%>
132</li>
133<li><b>log</b> -
134<%=intl._t("File to log activity to (change to /dev/null if you like)")%>
135</li>
136<li><b>theme</b> -
137<%=intl._t("Name of the theme to use (defaults to 'light')")%>
138</li>
139</ul>
140</div>
141<div id="footer">
142<hr>
143<p class="footer">susidns v${version.version} &copy; <a href="${version.url}" target="_top">susi</a> 2005 </p>
144</div>
145</div>
146</body>
147</html>
Note: See TracBrowser for help on using the repository browser.