diff options
author | nodiscc <nodiscc@gmail.com> | 2017-07-04 21:37:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-04 21:37:30 +0200 |
commit | 5b25a9635fe808bc1c4f3eee8cdf8485115da75d (patch) | |
tree | d5c46525f3c739d9c63de860427e0b3cadd688e5 /doc/Shaarli-configuration.html | |
parent | d5d22a6d07917865c44148ad76f43c65a929a890 (diff) | |
parent | 8bf94136e10c64496711c8f66a4f58f89c515360 (diff) | |
download | Shaarli-5b25a9635fe808bc1c4f3eee8cdf8485115da75d.tar.gz Shaarli-5b25a9635fe808bc1c4f3eee8cdf8485115da75d.tar.zst Shaarli-5b25a9635fe808bc1c4f3eee8cdf8485115da75d.zip |
Merge pull request #772 from nodiscc/rtfd
Generate HTML documentation using MkDocs
Diffstat (limited to 'doc/Shaarli-configuration.html')
-rw-r--r-- | doc/Shaarli-configuration.html | 298 |
1 files changed, 0 insertions, 298 deletions
diff --git a/doc/Shaarli-configuration.html b/doc/Shaarli-configuration.html deleted file mode 100644 index c696c97c..00000000 --- a/doc/Shaarli-configuration.html +++ /dev/null | |||
@@ -1,298 +0,0 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <html> | ||
3 | <head> | ||
4 | <meta charset="utf-8"> | ||
5 | <meta name="generator" content="pandoc"> | ||
6 | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> | ||
7 | <title>Shaarli – Shaarli configuration</title> | ||
8 | <style type="text/css">code{white-space: pre;}</style> | ||
9 | <style type="text/css"> | ||
10 | div.sourceCode { overflow-x: auto; } | ||
11 | table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode { | ||
12 | margin: 0; padding: 0; vertical-align: baseline; border: none; } | ||
13 | table.sourceCode { width: 100%; line-height: 100%; } | ||
14 | td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; color: #aaaaaa; border-right: 1px solid #aaaaaa; } | ||
15 | td.sourceCode { padding-left: 5px; } | ||
16 | code > span.kw { color: #007020; font-weight: bold; } /* Keyword */ | ||
17 | code > span.dt { color: #902000; } /* DataType */ | ||
18 | code > span.dv { color: #40a070; } /* DecVal */ | ||
19 | code > span.bn { color: #40a070; } /* BaseN */ | ||
20 | code > span.fl { color: #40a070; } /* Float */ | ||
21 | code > span.ch { color: #4070a0; } /* Char */ | ||
22 | code > span.st { color: #4070a0; } /* String */ | ||
23 | code > span.co { color: #60a0b0; font-style: italic; } /* Comment */ | ||
24 | code > span.ot { color: #007020; } /* Other */ | ||
25 | code > span.al { color: #ff0000; font-weight: bold; } /* Alert */ | ||
26 | code > span.fu { color: #06287e; } /* Function */ | ||
27 | code > span.er { color: #ff0000; font-weight: bold; } /* Error */ | ||
28 | code > span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */ | ||
29 | code > span.cn { color: #880000; } /* Constant */ | ||
30 | code > span.sc { color: #4070a0; } /* SpecialChar */ | ||
31 | code > span.vs { color: #4070a0; } /* VerbatimString */ | ||
32 | code > span.ss { color: #bb6688; } /* SpecialString */ | ||
33 | code > span.im { } /* Import */ | ||
34 | code > span.va { color: #19177c; } /* Variable */ | ||
35 | code > span.cf { color: #007020; font-weight: bold; } /* ControlFlow */ | ||
36 | code > span.op { color: #666666; } /* Operator */ | ||
37 | code > span.bu { } /* BuiltIn */ | ||
38 | code > span.ex { } /* Extension */ | ||
39 | code > span.pp { color: #bc7a00; } /* Preprocessor */ | ||
40 | code > span.at { color: #7d9029; } /* Attribute */ | ||
41 | code > span.do { color: #ba2121; font-style: italic; } /* Documentation */ | ||
42 | code > span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */ | ||
43 | code > span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */ | ||
44 | code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */ | ||
45 | </style> | ||
46 | <link rel="stylesheet" href="github-markdown.css"> | ||
47 | <!--[if lt IE 9]> | ||
48 | <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script> | ||
49 | <![endif]--> | ||
50 | </head> | ||
51 | <body> | ||
52 | <div id="local-sidebar"> | ||
53 | <ul> | ||
54 | <li><a href="Home.html">Home</a></li> | ||
55 | <li>Setup | ||
56 | <ul> | ||
57 | <li><a href="Download-and-Installation.html">Download and Installation</a></li> | ||
58 | <li><a href="Upgrade-and-migration.html">Upgrade and migration</a></li> | ||
59 | <li><a href="Server-requirements.html">Server requirements</a></li> | ||
60 | <li><a href="Server-configuration.html">Server configuration</a></li> | ||
61 | <li><a href="Server-security.html">Server security</a></li> | ||
62 | <li><a href="Shaarli-configuration.html">Shaarli configuration</a></li> | ||
63 | <li><a href="Plugins.html">Plugins</a></li> | ||
64 | </ul></li> | ||
65 | <li><a href="Docker.html">Docker</a></li> | ||
66 | <li><a href="Usage.html">Usage</a> | ||
67 | <ul> | ||
68 | <li><a href="Sharing-button.html">Sharing button</a> (bookmarklet)</li> | ||
69 | <li><a href="Browsing-and-Searching.html">Browsing and Searching</a></li> | ||
70 | <li><a href="Firefox-share.html">Firefox share</a></li> | ||
71 | <li><a href="RSS-feeds.html">RSS feeds</a></li> | ||
72 | <li><a href="REST-API.html">REST API</a></li> | ||
73 | </ul></li> | ||
74 | <li>How To | ||
75 | <ul> | ||
76 | <li><a href="Backup,-restore,-import-and-export.html">Backup, restore, import and export</a></li> | ||
77 | <li><a href="Copy-an-existing-installation-over-SSH-and-serve-it-locally.html">Copy an existing installation over SSH and serve it locally</a></li> | ||
78 | <li><a href="Create-and-serve-multiple-Shaarlis-(farm).html">Create and serve multiple Shaarlis (farm)</a></li> | ||
79 | <li><a href="Download-CSS-styles-from-an-OPML-list.html">Download CSS styles from an OPML list</a></li> | ||
80 | <li><a href="Datastore-hacks.html">Datastore hacks</a></li> | ||
81 | </ul></li> | ||
82 | <li><a href="Troubleshooting.html">Troubleshooting</a></li> | ||
83 | <li><a href="Development.html">Development</a> | ||
84 | <ul> | ||
85 | <li><a href="GnuPG-signature.html">GnuPG signature</a></li> | ||
86 | <li><a href="Coding-guidelines.html">Coding guidelines</a></li> | ||
87 | <li><a href="Directory-structure.html">Directory structure</a></li> | ||
88 | <li><a href="3rd-party-libraries.html">3rd party libraries</a></li> | ||
89 | <li><a href="Plugin-System.html">Plugin System</a></li> | ||
90 | <li><a href="Release-Shaarli.html">Release Shaarli</a></li> | ||
91 | <li><a href="Versioning-and-Branches.html">Versioning and Branches</a></li> | ||
92 | <li><a href="Security.html">Security</a></li> | ||
93 | <li><a href="Static-analysis.html">Static analysis</a></li> | ||
94 | <li><a href="Theming.html">Theming</a></li> | ||
95 | <li><a href="Unit-tests.html">Unit tests</a></li> | ||
96 | </ul></li> | ||
97 | <li>About | ||
98 | <ul> | ||
99 | <li><a href="FAQ.html">FAQ</a></li> | ||
100 | <li><a href="Community-&-Related-software.html">Community & Related software</a></li> | ||
101 | </ul></li> | ||
102 | </ul> | ||
103 | </div> | ||
104 | <h1 id="shaarli-configuration">Shaarli configuration</h1> | ||
105 | <h1 id="shaarli-configuration-1">Shaarli configuration</h1> | ||
106 | <h2 id="foreword">Foreword</h2> | ||
107 | <p><strong>Do not edit configuration options in index.php! Your changes would be lost.</strong></p> | ||
108 | <p>Once your Shaarli instance is installed, the file <code>data/config.json.php</code> is generated:</p> | ||
109 | <ul> | ||
110 | <li>it contains all settings in JSON format, and can be edited to customize values</li> | ||
111 | <li>it defines which <a href="Plugin-System">plugins</a> are enabled<a href="(.html).html">(.html)</a></li> | ||
112 | <li>its values override those defined in <code>index.php</code></li> | ||
113 | <li>it is wrap in a PHP comment to prevent anyone accessing it, regardless of server configuration</li> | ||
114 | </ul> | ||
115 | <h2 id="file-and-directory-permissions">File and directory permissions</h2> | ||
116 | <p>The server process running Shaarli must have:</p> | ||
117 | <ul> | ||
118 | <li><code>read</code> access to the following resources: | ||
119 | <ul> | ||
120 | <li>PHP scripts: <code>index.php</code>, <code>application/*.php</code>, <code>plugins/*.php</code></li> | ||
121 | <li>3rd party PHP and Javascript libraries: <code>inc/*.php</code>, <code>inc/*.js</code></li> | ||
122 | <li>static assets: | ||
123 | <ul> | ||
124 | <li>CSS stylesheets: <code>inc/*.css</code></li> | ||
125 | <li><code>images/*</code></li> | ||
126 | </ul></li> | ||
127 | <li>RainTPL templates: <code>tpl/*.html</code></li> | ||
128 | </ul></li> | ||
129 | <li><code>read</code>, <code>write</code> and <code>execution</code> access to the following directories: | ||
130 | <ul> | ||
131 | <li><code>cache</code> - thumbnail cache</li> | ||
132 | <li><code>data</code> - link data store, configuration options</li> | ||
133 | <li><code>pagecache</code> - Atom/RSS feed cache</li> | ||
134 | <li><code>tmp</code> - RainTPL page cache</li> | ||
135 | </ul></li> | ||
136 | </ul> | ||
137 | <p>On a Linux distribution:</p> | ||
138 | <ul> | ||
139 | <li>the web server user will likely be <code>www</code> or <code>http</code> (for Apache2)</li> | ||
140 | <li>it will be a member of a group of the same name: <code>www:www</code>, <code>http:http</code></li> | ||
141 | <li>to give it access to Shaarli, either: | ||
142 | <ul> | ||
143 | <li>unzip Shaarli in the default web server location (usually <code>/var/www/</code>) and set the web server user as the owner</li> | ||
144 | <li>put users in the same group as the web server, and set the appropriate access rights</li> | ||
145 | </ul></li> | ||
146 | <li>if you have a domain / subdomain to serve Shaarli, <a href="Server-configuration">configure the server</a> accordingly<a href="(.html).html">(.html)</a></li> | ||
147 | </ul> | ||
148 | <h2 id="configuration">Configuration</h2> | ||
149 | <p>In <code>data/config.json.php</code>.</p> | ||
150 | <p>See also <a href="Plugin-System.html">Plugin System</a>.<a href=".html"></a></p> | ||
151 | <h3 id="credentials">Credentials</h3> | ||
152 | <blockquote> | ||
153 | <p>You shouldn't edit those.</p> | ||
154 | </blockquote> | ||
155 | <p><strong>login</strong>: Login username.<br /> | ||
156 | <strong>hash</strong>: Generated password hash.<br /> | ||
157 | <strong>salt</strong>: Password salt.</p> | ||
158 | <h3 id="general">General</h3> | ||
159 | <p><strong>title</strong>: Shaarli's instance title.<br /> | ||
160 | <strong>header_link</strong>: Link to the homepage.<br /> | ||
161 | <strong>links_per_page</strong>: Number of shaares displayed per page.<br /> | ||
162 | <strong>timezone</strong>: See <a href="http://php.net/manual/en/timezones.php">the list of supported timezones</a>. <a href=".html"></a><br /> | ||
163 | <strong>enabled_plugins</strong>: List of enabled plugins.</p> | ||
164 | <h3 id="security">Security</h3> | ||
165 | <p><strong>session_protection_disabled</strong>: Disable session cookie hijacking protection (not recommended).<br /> | ||
166 | It might be useful if your IP adress often changes.<br /> | ||
167 | <strong>ban_after</strong>: Failed login attempts before being IP banned.<br /> | ||
168 | <strong>ban_duration</strong>: IP ban duration in seconds.<br /> | ||
169 | <strong>open_shaarli</strong>: Anyone can add a new link while logged out if enabled.<br /> | ||
170 | <strong>trusted_proxies</strong>: List of trusted IP which won't be banned after failed login attemps. Useful if Shaarli is behind a reverse proxy.</p> | ||
171 | <h3 id="resources">Resources</h3> | ||
172 | <p><strong>data_dir</strong>: Data directory.<br /> | ||
173 | <strong>datastore</strong>: Shaarli's links database file path.<br /> | ||
174 | <strong>history</strong>: Shaarli's operation history file path.<br /> | ||
175 | <strong>updates</strong>: File path for the ran updates file.<br /> | ||
176 | <strong>log</strong>: Log file path.<br /> | ||
177 | <strong>update_check</strong>: Last update check file path.<br /> | ||
178 | <strong>raintpl_tpl</strong>: Templates directory.<br /> | ||
179 | <strong>raintpl_tmp</strong>: Template engine cache directory.<br /> | ||
180 | <strong>thumbnails_cache</strong>: Thumbnails cache directory.<br /> | ||
181 | <strong>page_cache</strong>: Shaarli's internal cache directory.<br /> | ||
182 | <strong>ban_file</strong>: Banned IP file path.</p> | ||
183 | <h3 id="updates">Updates</h3> | ||
184 | <p><strong>check_updates</strong>: Enable or disable update check to the git repository.<br /> | ||
185 | <strong>check_updates_branch</strong>: Git branch used to check updates (e.g. <code>stable</code> or <code>master</code>).<br /> | ||
186 | <strong>check_updates_interval</strong>: Look for new version every N seconds (default: every day).</p> | ||
187 | <h3 id="privacy">Privacy</h3> | ||
188 | <p><strong>default_private_links</strong>: Check the private checkbox by default for every new link.<br /> | ||
189 | <strong>hide_public_links</strong>: All links are hidden while logged out.<br /> | ||
190 | <strong>hide_timestamps</strong>: Timestamps are hidden.</p> | ||
191 | <h3 id="feed">Feed</h3> | ||
192 | <p><strong>rss_permalinks</strong>: Enable this to redirect RSS links to Shaarli's permalinks instead of shaared URL.<br /> | ||
193 | <strong>show_atom</strong>: Display ATOM feed button.</p> | ||
194 | <h3 id="thumbnail">Thumbnail</h3> | ||
195 | <p><strong>enable_thumbnails</strong>: Enable or disable thumbnail display.<br /> | ||
196 | <strong>enable_localcache</strong>: Enable or disable local cache.</p> | ||
197 | <h3 id="redirector">Redirector</h3> | ||
198 | <p><strong>url</strong>: Redirector URL, such as <code>anonym.to</code>.<br /> | ||
199 | <strong>encode_url</strong>: Enable this if the redirector needs encoded URL to work properly.</p> | ||
200 | <h2 id="configuration-file-example">Configuration file example</h2> | ||
201 | <div class="sourceCode"><pre class="sourceCode json"><code class="sourceCode json"><span class="er"><?php</span> <span class="er">/*</span> | ||
202 | <span class="fu">{</span> | ||
203 | <span class="dt">"credentials"</span><span class="fu">:</span> <span class="fu">{</span> | ||
204 | <span class="dt">"login"</span><span class="fu">:</span> <span class="st">"<login>"</span><span class="fu">,</span> | ||
205 | <span class="dt">"hash"</span><span class="fu">:</span> <span class="st">"<password hash>"</span><span class="fu">,</span> | ||
206 | <span class="dt">"salt"</span><span class="fu">:</span> <span class="st">"<password salt>"</span> | ||
207 | <span class="fu">},</span> | ||
208 | <span class="dt">"security"</span><span class="fu">:</span> <span class="fu">{</span> | ||
209 | <span class="dt">"ban_after"</span><span class="fu">:</span> <span class="dv">4</span><span class="fu">,</span> | ||
210 | <span class="dt">"session_protection_disabled"</span><span class="fu">:</span> <span class="kw">false</span><span class="fu">,</span> | ||
211 | <span class="dt">"ban_duration"</span><span class="fu">:</span> <span class="dv">1800</span><span class="fu">,</span> | ||
212 | <span class="dt">"trusted_proxies"</span><span class="fu">:</span> <span class="ot">[[]</span><span class="er">(.html)</span> | ||
213 | <span class="st">"1.2.3.4"</span><span class="ot">,</span> | ||
214 | <span class="st">"5.6.7.8"</span> | ||
215 | <span class="ot">]</span> | ||
216 | <span class="fu">},</span> | ||
217 | <span class="dt">"resources"</span><span class="fu">:</span> <span class="fu">{</span> | ||
218 | <span class="dt">"data_dir"</span><span class="fu">:</span> <span class="st">"data"</span><span class="fu">,</span> | ||
219 | <span class="dt">"config"</span><span class="fu">:</span> <span class="st">"data</span><span class="ch">\/</span><span class="st">config.php"</span><span class="fu">,</span> | ||
220 | <span class="dt">"datastore"</span><span class="fu">:</span> <span class="st">"data</span><span class="ch">\/</span><span class="st">datastore.php"</span><span class="fu">,</span> | ||
221 | <span class="dt">"ban_file"</span><span class="fu">:</span> <span class="st">"data</span><span class="ch">\/</span><span class="st">ipbans.php"</span><span class="fu">,</span> | ||
222 | <span class="dt">"updates"</span><span class="fu">:</span> <span class="st">"data</span><span class="ch">\/</span><span class="st">updates.txt"</span><span class="fu">,</span> | ||
223 | <span class="dt">"log"</span><span class="fu">:</span> <span class="st">"data</span><span class="ch">\/</span><span class="st">log.txt"</span><span class="fu">,</span> | ||
224 | <span class="dt">"update_check"</span><span class="fu">:</span> <span class="st">"data</span><span class="ch">\/</span><span class="st">lastupdatecheck.txt"</span><span class="fu">,</span> | ||
225 | <span class="dt">"raintpl_tmp"</span><span class="fu">:</span> <span class="st">"tmp</span><span class="ch">\/</span><span class="st">"</span><span class="fu">,</span> | ||
226 | <span class="dt">"raintpl_tpl"</span><span class="fu">:</span> <span class="st">"tpl</span><span class="ch">\/</span><span class="st">"</span><span class="fu">,</span> | ||
227 | <span class="dt">"thumbnails_cache"</span><span class="fu">:</span> <span class="st">"cache"</span><span class="fu">,</span> | ||
228 | <span class="dt">"page_cache"</span><span class="fu">:</span> <span class="st">"pagecache"</span> | ||
229 | <span class="fu">},</span> | ||
230 | <span class="dt">"general"</span><span class="fu">:</span> <span class="fu">{</span> | ||
231 | <span class="dt">"check_updates"</span><span class="fu">:</span> <span class="kw">true</span><span class="fu">,</span> | ||
232 | <span class="dt">"rss_permalinks"</span><span class="fu">:</span> <span class="kw">true</span><span class="fu">,</span> | ||
233 | <span class="dt">"links_per_page"</span><span class="fu">:</span> <span class="dv">20</span><span class="fu">,</span> | ||
234 | <span class="dt">"default_private_links"</span><span class="fu">:</span> <span class="kw">true</span><span class="fu">,</span> | ||
235 | <span class="dt">"enable_thumbnails"</span><span class="fu">:</span> <span class="kw">true</span><span class="fu">,</span> | ||
236 | <span class="dt">"enable_localcache"</span><span class="fu">:</span> <span class="kw">true</span><span class="fu">,</span> | ||
237 | <span class="dt">"check_updates_branch"</span><span class="fu">:</span> <span class="st">"stable"</span><span class="fu">,</span> | ||
238 | <span class="dt">"check_updates_interval"</span><span class="fu">:</span> <span class="dv">86400</span><span class="fu">,</span> | ||
239 | <span class="dt">"enabled_plugins"</span><span class="fu">:</span> <span class="ot">[[]</span><span class="er">(.html)</span> | ||
240 | <span class="st">"markdown"</span><span class="ot">,</span> | ||
241 | <span class="st">"wallabag"</span><span class="ot">,</span> | ||
242 | <span class="st">"archiveorg"</span> | ||
243 | <span class="ot">]</span><span class="fu">,</span> | ||
244 | <span class="dt">"timezone"</span><span class="fu">:</span> <span class="st">"Europe</span><span class="ch">\/</span><span class="st">Paris"</span><span class="fu">,</span> | ||
245 | <span class="dt">"title"</span><span class="fu">:</span> <span class="st">"My Shaarli"</span><span class="fu">,</span> | ||
246 | <span class="dt">"header_link"</span><span class="fu">:</span> <span class="st">"?"</span> | ||
247 | <span class="fu">},</span> | ||
248 | <span class="dt">"extras"</span><span class="fu">:</span> <span class="fu">{</span> | ||
249 | <span class="dt">"show_atom"</span><span class="fu">:</span> <span class="kw">false</span><span class="fu">,</span> | ||
250 | <span class="dt">"hide_public_links"</span><span class="fu">:</span> <span class="kw">false</span><span class="fu">,</span> | ||
251 | <span class="dt">"hide_timestamps"</span><span class="fu">:</span> <span class="kw">false</span><span class="fu">,</span> | ||
252 | <span class="dt">"open_shaarli"</span><span class="fu">:</span> <span class="kw">false</span><span class="fu">,</span> | ||
253 | <span class="dt">"redirector"</span><span class="fu">:</span> <span class="st">"http://anonym.to/?"</span><span class="fu">,</span> | ||
254 | <span class="dt">"redirector_encode_url"</span><span class="fu">:</span> <span class="kw">false</span> | ||
255 | <span class="fu">},</span> | ||
256 | <span class="dt">"general"</span><span class="fu">:</span> <span class="fu">{</span> | ||
257 | <span class="dt">"header_link"</span><span class="fu">:</span> <span class="st">"?"</span><span class="fu">,</span> | ||
258 | <span class="dt">"links_per_page"</span><span class="fu">:</span> <span class="dv">20</span><span class="fu">,</span> | ||
259 | <span class="dt">"enabled_plugins"</span><span class="fu">:</span> <span class="ot">[[]</span><span class="er">(.html)</span> | ||
260 | <span class="st">"markdown"</span><span class="ot">,</span> | ||
261 | <span class="st">"wallabag"</span> | ||
262 | <span class="ot">]</span><span class="fu">,</span> | ||
263 | <span class="dt">"timezone"</span><span class="fu">:</span> <span class="st">"Europe</span><span class="ch">\/</span><span class="st">Paris"</span><span class="fu">,</span> | ||
264 | <span class="dt">"title"</span><span class="fu">:</span> <span class="st">"My Shaarli"</span> | ||
265 | <span class="fu">},</span> | ||
266 | <span class="dt">"updates"</span><span class="fu">:</span> <span class="fu">{</span> | ||
267 | <span class="dt">"check_updates"</span><span class="fu">:</span> <span class="kw">true</span><span class="fu">,</span> | ||
268 | <span class="dt">"check_updates_branch"</span><span class="fu">:</span> <span class="st">"stable"</span><span class="fu">,</span> | ||
269 | <span class="dt">"check_updates_interval"</span><span class="fu">:</span> <span class="dv">86400</span> | ||
270 | <span class="fu">},</span> | ||
271 | <span class="dt">"feed"</span><span class="fu">:</span> <span class="fu">{</span> | ||
272 | <span class="dt">"rss_permalinks"</span><span class="fu">:</span> <span class="kw">true</span><span class="fu">,</span> | ||
273 | <span class="dt">"show_atom"</span><span class="fu">:</span> <span class="kw">false</span> | ||
274 | <span class="fu">},</span> | ||
275 | <span class="dt">"privacy"</span><span class="fu">:</span> <span class="fu">{</span> | ||
276 | <span class="dt">"default_private_links"</span><span class="fu">:</span> <span class="kw">true</span><span class="fu">,</span> | ||
277 | <span class="dt">"hide_public_links"</span><span class="fu">:</span> <span class="kw">false</span><span class="fu">,</span> | ||
278 | <span class="dt">"hide_timestamps"</span><span class="fu">:</span> <span class="kw">false</span> | ||
279 | <span class="fu">},</span> | ||
280 | <span class="dt">"thumbnail"</span><span class="fu">:</span> <span class="fu">{</span> | ||
281 | <span class="dt">"enable_thumbnails"</span><span class="fu">:</span> <span class="kw">true</span><span class="fu">,</span> | ||
282 | <span class="dt">"enable_localcache"</span><span class="fu">:</span> <span class="kw">true</span> | ||
283 | <span class="fu">},</span> | ||
284 | <span class="dt">"redirector"</span><span class="fu">:</span> <span class="fu">{</span> | ||
285 | <span class="dt">"url"</span><span class="fu">:</span> <span class="st">"http://anonym.to/?"</span><span class="fu">,</span> | ||
286 | <span class="dt">"encode_url"</span><span class="fu">:</span> <span class="kw">false</span> | ||
287 | <span class="fu">},</span> | ||
288 | <span class="dt">"plugins"</span><span class="fu">:</span> <span class="fu">{</span> | ||
289 | <span class="dt">"WALLABAG_URL"</span><span class="fu">:</span> <span class="st">"http://demo.wallabag.org"</span><span class="fu">,</span> | ||
290 | <span class="dt">"WALLABAG_VERSION"</span><span class="fu">:</span> <span class="st">"1"</span> | ||
291 | <span class="fu">}</span> | ||
292 | <span class="fu">}</span> <span class="er">?></span></code></pre></div> | ||
293 | <h2 id="additional-configuration">Additional configuration</h2> | ||
294 | <p>The playvideos plugin may require that you adapt your server's<br /> | ||
295 | <a href="https://github.com/shaarli/Shaarli/blob/master/plugins/playvideos/README.md#troubleshooting">Content Security Policy</a> <a href=".html"></a><br /> | ||
296 | configuration to work properly.<a href="(.html).html">(.html)</a></p> | ||
297 | </body> | ||
298 | </html> | ||