forked from indymedia/epicyon
Document creation of news mirror
This commit is contained in:
1 parent
3d629a1287
commit
23fcc996dc
2 files changed
+26
-1
No files matched your search
@@ -19,6 +19,12 @@ Create a user for the server to run as:
|
||||
adduser --system --home=/opt/epicyon --group 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:
|
||||
|
||||
nano /etc/systemd/system/epicyon.service
|
||||
@@ -104,6 +110,11 @@ And paste the following:
|
||||
|
||||
index index.html;
|
||||
|
||||
location /newsmirror {
|
||||
root /var/www/YOUR_DOMAIN;
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_http_version 1.1;
|
||||
client_max_body_size 31M;
|
||||
|
||||
Reference in new issue
Block a user