summaryrefslogtreecommitdiff
path: root/frontends
diff options
context:
space:
mode:
Diffstat (limited to 'frontends')
-rw-r--r--frontends/Rexfile12
-rw-r--r--frontends/etc/inetd.conf3
-rw-r--r--frontends/etc/rsyncd.conf.tpl21
3 files changed, 34 insertions, 2 deletions
diff --git a/frontends/Rexfile b/frontends/Rexfile
index e9afc08..6919918 100644
--- a/frontends/Rexfile
+++ b/frontends/Rexfile
@@ -89,7 +89,6 @@ task 'dump_info', group => 'frontends', sub { dump_system_information };
desc 'Install base stuff';
task 'base', group => 'frontends',
sub {
- pkg 'rsync', ensure => present;
pkg 'tig', ensure => present;
pkg 'vger', ensure => present;
pkg 'zsh', ensure => present;
@@ -110,6 +109,17 @@ task 'uptimed', group => 'frontends',
service 'uptimed', ensure => 'started';
};
+desc 'Setup rsync';
+task 'rsync', group => 'frontends',
+ sub {
+ pkg 'rsync', ensure => present;
+ file '/etc/rsyncd.conf',
+ content => template('./etc/rsyncd.conf.tpl'),
+ owner => 'root',
+ group => 'wheel',
+ mode => '644';
+ };
+
desc 'Configure the gemtexter sites';
task 'gemtexter', group => 'frontends',
sub {
diff --git a/frontends/etc/inetd.conf b/frontends/etc/inetd.conf
index efddbb3..7467a43 100644
--- a/frontends/etc/inetd.conf
+++ b/frontends/etc/inetd.conf
@@ -1,2 +1,3 @@
127.0.0.1:11965 stream tcp nowait www /usr/local/bin/vger vger -v
-*:4242 stream tcp nowait _failunderd /bin/cat cat /var/run/failunderd/status.json
+rsync stream tcp nowait root /usr/local/bin/rsync rsyncd --daemon
+# *:4242 stream tcp nowait _failunderd /bin/cat cat /var/run/failunderd/status.json
diff --git a/frontends/etc/rsyncd.conf.tpl b/frontends/etc/rsyncd.conf.tpl
new file mode 100644
index 0000000..86e6b0c
--- /dev/null
+++ b/frontends/etc/rsyncd.conf.tpl
@@ -0,0 +1,21 @@
+<% my $allow = '108.160.134.135,2401:c080:1000:45af:5400:3ff:fec6:ca1d,*.buetow.org,localhost'; %>
+max connections = 5
+timeout = 300
+
+[publicgemini]
+comment = Public Gemini capsule content
+path = /var/gemini
+read only = yes
+list = yes
+uid = www
+gid = www
+hosts allow = <%= $allow %>
+
+[publichttp]
+comment = Public HTTP content
+path = /var/www/htdocs
+read only = yes
+list = yes
+uid = www
+gid = www
+hosts allow = <%= $allow %>