*Empty MediaWiki Message*
This commit is contained in:
parent
24573484f2
commit
4e68f8ea7f
|
@ -1,8 +1,6 @@
|
|||
[[Kategorie:Infrastruktur]]
|
||||
|
||||
== SaferSharing ==
|
||||
|
||||
To avoid legal steps because you are hosting to everyone
|
||||
To avoid legal steps because you are hosting to everyone:
|
||||
|
||||
* get nginx with auth_base
|
||||
* proxy around
|
||||
|
@ -10,7 +8,8 @@ To avoid legal steps because you are hosting to everyone
|
|||
|
||||
==== config nginx ====
|
||||
|
||||
<pre>$ vi /etc/nginx/sites-available/default
|
||||
<pre>
|
||||
$ vi /etc/nginx/sites-available/default
|
||||
$ cat /etc/nginx/sites-available/default
|
||||
|
||||
server {
|
||||
|
@ -37,12 +36,15 @@ $ cat /et/nginx/htpasswd
|
|||
user:yoursavepassword</pre>
|
||||
in addtion we used:
|
||||
|
||||
<pre>$ openssl passwd -crypt yoursupersafepassword</pre>
|
||||
<pre>
|
||||
$ openssl passwd -crypt yoursupersafepassword
|
||||
</pre>
|
||||
instead of plaintext password
|
||||
|
||||
==== sharing2 conf ====
|
||||
|
||||
<pre>$ vi /path/to/sharing2/main.hs
|
||||
<pre>
|
||||
$ vi /path/to/sharing2/main.hs
|
||||
$ cat /path/to/sharing2/main.hs
|
||||
|
||||
|
||||
|
@ -52,12 +54,18 @@ main = app >>=
|
|||
{ settingsHost = HostIPv6
|
||||
, settingsPort = 8000
|
||||
, ...
|
||||
})</pre>
|
||||
})
|
||||
</pre>
|
||||
|
||||
==== modify iptables ====
|
||||
|
||||
<pre>$ iptables -t filter -A INPUT ! -s 127.0.0.1 -p tcp --dport 8000 -j DROP
|
||||
$ ip6tables -t filter -A INPUT ! -s ::1 -p tcp --dport 8000 -j DROP</pre>
|
||||
<pre>
|
||||
$ iptables -t filter -A INPUT ! -s 127.0.0.1 -p tcp --dport 8000 -j DROP
|
||||
$ ip6tables -t filter -A INPUT ! -s ::1 -p tcp --dport 8000 -j DROP
|
||||
</pre>
|
||||
|
||||
== Na toll, aber wie ist der Zugang zu Cider nun? ==
|
||||
|
||||
wie auf allen anderen Maschinen auch
|
||||
|
||||
[[Kategorie:Infrastruktur]]
|
||||
|
|
Loading…
Reference in New Issue
Block a user