mirror of
https://github.com/filegator/filegator.git
synced 2025-08-11 13:34:03 +02:00
Website generation with Couscous
This commit is contained in:
@@ -133,21 +133,21 @@
|
|||||||
<p>Simple security service is included in the script by default. This service provides:</p>
|
<p>Simple security service is included in the script by default. This service provides:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Basic session-based <a href="https://en.wikipedia.org/wiki/Cross-site_request_forgery">CSRF</a> protection</li>
|
<li>Basic session-based <a href="https://en.wikipedia.org/wiki/Cross-site_request_forgery">CSRF</a> protection</li>
|
||||||
<li>IP whitelisting</li>
|
<li>IP allow list</li>
|
||||||
<li>IP blacklisting</li>
|
<li>IP deny list</li>
|
||||||
</ul>
|
</ul>
|
||||||
<pre><code> 'Filegator\Services\Security\Security' => [
|
<pre><code> 'Filegator\Services\Security\Security' => [
|
||||||
'handler' => '\Filegator\Services\Security\Security',
|
'handler' => '\Filegator\Services\Security\Security',
|
||||||
'config' => [
|
'config' => [
|
||||||
'csrf_protection' => true,
|
'csrf_protection' => true,
|
||||||
'ip_whitelist' => [],
|
'ip_allowlist' => [],
|
||||||
'ip_blacklist' => [
|
'ip_denylist' => [
|
||||||
'172.16.1.2',
|
'172.16.1.2',
|
||||||
'172.16.3.4',
|
'172.16.3.4',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],</code></pre>
|
],</code></pre>
|
||||||
<p>If you set <code>ip_whitelist</code> then only users coming from listed IP addresses will be able to use the script.</p>
|
<p>If you set <code>ip_allowlist</code> then only users coming from listed IP addresses will be able to use the script.</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@@ -136,7 +136,7 @@
|
|||||||
<h2 id="download-precompiled-build">Download precompiled build</h2>
|
<h2 id="download-precompiled-build">Download precompiled build</h2>
|
||||||
<p>Precompiled build is created for non-developers. In this version, the frontend (html, css and javascript) is compiled for you and the source code is removed so the final archive contains only minimum files.</p>
|
<p>Precompiled build is created for non-developers. In this version, the frontend (html, css and javascript) is compiled for you and the source code is removed so the final archive contains only minimum files.</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Download: <a href="https://github.com/filegator/static/raw/master/builds/filegator_v7.4.1.zip">v7.4.1</a></li>
|
<li>Download: <a href="https://github.com/filegator/static/raw/master/builds/filegator_v7.4.2.zip">v7.4.2</a></li>
|
||||||
<li>Unzip files and upload them to your PHP server</li>
|
<li>Unzip files and upload them to your PHP server</li>
|
||||||
<li>Make sure your webserver can read and write to <code>filegator/repository/</code> and <code>filegator/private/</code> folders</li>
|
<li>Make sure your webserver can read and write to <code>filegator/repository/</code> and <code>filegator/private/</code> folders</li>
|
||||||
<li>Set the website document root to <code>filegator/dist/</code> directory. This is also known as 'public' folder</li>
|
<li>Set the website document root to <code>filegator/dist/</code> directory. This is also known as 'public' folder</li>
|
||||||
@@ -151,8 +151,8 @@
|
|||||||
apt install -y wget unzip php apache2 libapache2-mod-php php-zip
|
apt install -y wget unzip php apache2 libapache2-mod-php php-zip
|
||||||
|
|
||||||
cd /var/www/
|
cd /var/www/
|
||||||
wget https://github.com/filegator/static/raw/master/builds/filegator_v7.4.1.zip
|
wget https://github.com/filegator/static/raw/master/builds/filegator_v7.4.2.zip
|
||||||
unzip filegator_v7.4.1.zip && rm filegator_v7.4.1.zip
|
unzip filegator_v7.4.2.zip && rm filegator_v7.4.2.zip
|
||||||
|
|
||||||
chown -R www-data:www-data filegator/
|
chown -R www-data:www-data filegator/
|
||||||
chmod -R 775 filegator/
|
chmod -R 775 filegator/
|
||||||
|
Reference in New Issue
Block a user