*Empty MediaWiki Message*
This commit is contained in:
parent
4e68f8ea7f
commit
babdd32bed
|
@ -8,10 +8,9 @@ To avoid legal steps because you are hosting to everyone:
|
|||
|
||||
==== config nginx ====
|
||||
|
||||
<source lang="bash">vi /etc/nginx/sites-available/default</source>
|
||||
<source lang="bash">cat /etc/nginx/sites-available/default</source>
|
||||
<pre>
|
||||
$ vi /etc/nginx/sites-available/default
|
||||
$ cat /etc/nginx/sites-available/default
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server ipv6only=on;
|
||||
|
@ -29,25 +28,21 @@ server {
|
|||
proxy_buffering off;
|
||||
}
|
||||
}
|
||||
|
||||
$ vi /etc/nginx/htpasswd
|
||||
$ cat /et/nginx/htpasswd
|
||||
|
||||
user:yoursavepassword</pre>
|
||||
in addtion we used:
|
||||
|
||||
<pre>
|
||||
$ openssl passwd -crypt yoursupersafepassword
|
||||
</pre>
|
||||
instead of plaintext password
|
||||
|
||||
<source lang="bash">vi /etc/nginx/htpasswd</source>
|
||||
<source lang="bash">cat /et/nginx/htpasswd</source>
|
||||
<pre>
|
||||
user:yoursavepassword
|
||||
</pre>
|
||||
|
||||
In addition we used <source lang="bash">openssl passwd -crypt yoursupersafepassword</source> instead of plaintext password.
|
||||
|
||||
==== sharing2 conf ====
|
||||
|
||||
<source lang="bash">vi /path/to/sharing2/main.hs</source>
|
||||
<source lang="bash">cat /path/to/sharing2/main.hs</source>
|
||||
<pre>
|
||||
$ vi /path/to/sharing2/main.hs
|
||||
$ cat /path/to/sharing2/main.hs
|
||||
|
||||
|
||||
main :: IO ()
|
||||
main = app >>=
|
||||
runSettings (defaultSettings
|
||||
|
@ -59,10 +54,8 @@ main = app >>=
|
|||
|
||||
==== 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>
|
||||
<source lang="bash">iptables -t filter -A INPUT ! -s 127.0.0.1 -p tcp --dport 8000 -j DROP</source>
|
||||
<source lang="bash">$ ip6tables -t filter -A INPUT ! -s ::1 -p tcp --dport 8000 -j DROP</source>
|
||||
|
||||
== Na toll, aber wie ist der Zugang zu Cider nun? ==
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user