forked from indymedia/epicyon
Document creation of news mirror
parent
3d629a1287
commit
23fcc996dc
|
@ -19,6 +19,12 @@ Create a user for the server to run as:
|
||||||
adduser --system --home=/opt/epicyon --group epicyon
|
adduser --system --home=/opt/epicyon --group epicyon
|
||||||
chown -R epicyon:epicyon /opt/epicyon
|
chown -R epicyon:epicyon /opt/epicyon
|
||||||
|
|
||||||
|
Link news mirrors:
|
||||||
|
|
||||||
|
mkdir /var/www/YOUR_DOMAIN
|
||||||
|
mkdir -p /opt/epicyon/accounts/newsmirror
|
||||||
|
ln -s /opt/epicyon/accounts/newsmirror /var/www/YOUR_DOMAIN/newsmirror
|
||||||
|
|
||||||
Create a daemon:
|
Create a daemon:
|
||||||
|
|
||||||
nano /etc/systemd/system/epicyon.service
|
nano /etc/systemd/system/epicyon.service
|
||||||
|
@ -104,6 +110,11 @@ And paste the following:
|
||||||
|
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
||||||
|
location /newsmirror {
|
||||||
|
root /var/www/YOUR_DOMAIN;
|
||||||
|
try_files $uri =404;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
client_max_body_size 31M;
|
client_max_body_size 31M;
|
||||||
|
|
|
@ -1293,6 +1293,15 @@
|
||||||
<p>chown -R epicyon:epicyon /opt/epicyon</p>
|
<p>chown -R epicyon:epicyon /opt/epicyon</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<p class="intro">
|
||||||
|
Link news mirrors:
|
||||||
|
</p>
|
||||||
|
<div class="shell">
|
||||||
|
<p>mkdir /var/www/YOUR_DOMAIN</p>
|
||||||
|
<p>mkdir -p /opt/epicyon/accounts/newsmirror</p>
|
||||||
|
<p>ln -s /opt/epicyon/accounts/newsmirror /var/www/YOUR_DOMAIN/newsmirror</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<p class="intro">
|
<p class="intro">
|
||||||
Create a daemon:
|
Create a daemon:
|
||||||
</p>
|
</p>
|
||||||
|
@ -1389,6 +1398,11 @@
|
||||||
<br>
|
<br>
|
||||||
index index.html;<br>
|
index index.html;<br>
|
||||||
<br>
|
<br>
|
||||||
|
location /newsmirror {<br>
|
||||||
|
root /var/www/YOUR_DOMAIN;<br>
|
||||||
|
try_files $uri =404;<br>
|
||||||
|
}<br>
|
||||||
|
<br>
|
||||||
location / {<br>
|
location / {<br>
|
||||||
proxy_http_version 1.1;<br>
|
proxy_http_version 1.1;<br>
|
||||||
client_max_body_size 31M;<br>
|
client_max_body_size 31M;<br>
|
||||||
|
|
Loading…
Reference in New Issue