mirror of
https://github.com/arcan1s/arcanis.me.git
synced 2025-04-24 23:37:19 +00:00
edited page
This commit is contained in:
parent
515de6a456
commit
aa22d953b6
@ -30,16 +30,16 @@ domain.name. 912 IN A 192.30.252.154
|
|||||||
<li>Since the repo requires ftp protocol, I've changed samba shared folders to ftp. The problem of access has been resolved by using mount options:
|
<li>Since the repo requires ftp protocol, I've changed samba shared folders to ftp. The problem of access has been resolved by using mount options:
|
||||||
{% highlight bash %}
|
{% highlight bash %}
|
||||||
# only read rights
|
# only read rights
|
||||||
/home/arcanis/music /mnt/ftp/music ext4 defaults,bind,ro 0 0
|
/home/arcanis/music /srv/ftp/music ext4 defaults,bind,ro 0 0
|
||||||
/home/arcanis/arch/repo /mnt/ftp/repo ext4 defaults,bind,ro 0 0
|
/home/arcanis/arch/repo /srv/ftp/repo ext4 defaults,bind,ro 0 0
|
||||||
# read and write rights (the file has size 2 Gb)
|
# read and write rights (the file has size 2 Gb)
|
||||||
/home/arcanis/share.fs /mnt/ftp/share ext4 defaults,rw 0 0
|
/home/arcanis/share.fs /srv/ftp/share ext4 defaults,rw 0 0
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
Login on special user and option <code>anon_world_readable_only=YES</code> are used for prevent access to the music directory.
|
Login on special user and option <code>anon_world_readable_only=YES</code> are used for prevent access to the music directory.
|
||||||
Also here is my <code>/etc/vsftpd.conf</code> configuration file:
|
Also here is my <code>/etc/vsftpd.conf</code> configuration file:
|
||||||
{% highlight bash %}
|
{% highlight bash %}
|
||||||
anonymous_enable=YES
|
anonymous_enable=YES
|
||||||
anon_root=/mnt/ftp
|
anon_root=/srv/ftp
|
||||||
local_enable=YES
|
local_enable=YES
|
||||||
write_enable=YES
|
write_enable=YES
|
||||||
local_umask=022
|
local_umask=022
|
||||||
@ -54,7 +54,7 @@ nopriv_user=music
|
|||||||
ascii_upload_enable=YES
|
ascii_upload_enable=YES
|
||||||
ftpd_banner=Welcome to arcanis
|
ftpd_banner=Welcome to arcanis
|
||||||
chroot_local_user=YES
|
chroot_local_user=YES
|
||||||
local_root=/mnt/ftp/music
|
local_root=/srv/ftp/music
|
||||||
listen=YES
|
listen=YES
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
Now let's add redirection from <code>repo.arcanis.name</code> to the needed IP address. To do this, add the following entry in DNS:
|
Now let's add redirection from <code>repo.arcanis.name</code> to the needed IP address. To do this, add the following entry in DNS:
|
||||||
|
@ -30,16 +30,16 @@ domain.name. 912 IN A 192.30.252.154
|
|||||||
<li>Поскольку репозиторий требует ftp, то перевел samba на ftp. Проблему доступа решил опциями монтирования:
|
<li>Поскольку репозиторий требует ftp, то перевел samba на ftp. Проблему доступа решил опциями монтирования:
|
||||||
{% highlight bash %}
|
{% highlight bash %}
|
||||||
# только чтение
|
# только чтение
|
||||||
/home/arcanis/music /mnt/ftp/music ext4 defaults,bind,ro 0 0
|
/home/arcanis/music /srv/ftp/music ext4 defaults,bind,ro 0 0
|
||||||
/home/arcanis/arch/repo /mnt/ftp/repo ext4 defaults,bind,ro 0 0
|
/home/arcanis/arch/repo /srv/ftp/repo ext4 defaults,bind,ro 0 0
|
||||||
# чтение и запись (файл ограничен 2 Гб)
|
# чтение и запись (файл ограничен 2 Гб)
|
||||||
/home/arcanis/share.fs /mnt/ftp/share ext4 defaults,rw 0 0
|
/home/arcanis/share.fs /srv/ftp/share ext4 defaults,rw 0 0
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
Для отсутствия доступа извне к директории с музыкой, используется логин под специальным пользователем и ограничение <code>anon_world_readable_only=YES</code>.
|
Для отсутствия доступа извне к директории с музыкой, используется логин под специальным пользователем и ограничение <code>anon_world_readable_only=YES</code>.
|
||||||
Также привожу свой файл настроек <code>/etc/vsftpd.conf</code>:
|
Также привожу свой файл настроек <code>/etc/vsftpd.conf</code>:
|
||||||
{% highlight bash %}
|
{% highlight bash %}
|
||||||
anonymous_enable=YES
|
anonymous_enable=YES
|
||||||
anon_root=/mnt/ftp
|
anon_root=/srv/ftp
|
||||||
local_enable=YES
|
local_enable=YES
|
||||||
write_enable=YES
|
write_enable=YES
|
||||||
local_umask=022
|
local_umask=022
|
||||||
@ -54,7 +54,7 @@ nopriv_user=music
|
|||||||
ascii_upload_enable=YES
|
ascii_upload_enable=YES
|
||||||
ftpd_banner=Welcome to arcanis
|
ftpd_banner=Welcome to arcanis
|
||||||
chroot_local_user=YES
|
chroot_local_user=YES
|
||||||
local_root=/mnt/ftp/music
|
local_root=/srv/ftp/music
|
||||||
listen=YES
|
listen=YES
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
Теперь добавим переадресацию с <code>repo.arcanis.name</code> на нужный IP адрес. Для этого внесем следующие записи в DNS:
|
Теперь добавим переадресацию с <code>repo.arcanis.name</code> на нужный IP адрес. Для этого внесем следующие записи в DNS:
|
||||||
|
Loading…
Reference in New Issue
Block a user