18883884478819497bf5e4e3bf76562c0a12debc
README.md
... | ... | @@ -1,7 +1,7 @@ |
1 | 1 | # Spacewiki |
2 | 2 | |
3 | 3 | ## wiki |
4 | -docker run -d -v -v $(pwd):/wiki -p 4567:4567 gollumwiki/gollum:master --css |
|
4 | +docker run -d -v $(pwd):/wiki -p 4567:4567 gollumwiki/gollum:master --css |
|
5 | 5 | |
6 | 6 | ## HTTPS Proxy |
7 | 7 | cd docker |
... | ... | @@ -13,3 +13,44 @@ certbot --nginx -d stubbornspace.com |
13 | 13 | docker commit * nginx-proxy:certbot |
14 | 14 | ## Cron |
15 | 15 | |
16 | + |
|
17 | +Install homebrew |
|
18 | + |
|
19 | +/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" |
|
20 | + |
|
21 | +brew install nginx |
|
22 | + |
|
23 | +brew services start nginx |
|
24 | + |
|
25 | +/opt/homebrew/etc/nginx/nginx.conf |
|
26 | +nginx will load all files in /opt/homebrew/etc/nginx/servers/ |
|
27 | + |
|
28 | +``` |
|
29 | +server { |
|
30 | + listen 80; |
|
31 | + listen [::]:80; |
|
32 | + server_name stubbornspace.com; |
|
33 | + |
|
34 | + #location / { |
|
35 | + # root /usr/share/nginx/html; |
|
36 | + # index index.html index.htm; |
|
37 | + #} |
|
38 | + |
|
39 | + location / { |
|
40 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
41 | + proxy_set_header X-Forwarded-Proto $scheme; |
|
42 | + proxy_set_header X-Real-IP $remote_addr; |
|
43 | + proxy_set_header Host $http_host; |
|
44 | + proxy_pass http://127.0.0.1:4567; |
|
45 | + |
|
46 | + auth_basic "No no no, you forgot the majic word"; |
|
47 | + auth_basic_user_file /etc/nginx/.htpasswd; |
|
48 | + } |
|
49 | + client_max_body_size 10m; |
|
50 | + |
|
51 | + error_page 500 502 503 504 /50x.html; |
|
52 | + location = /50x.html { |
|
53 | + root /usr/share/nginx/html; |
|
54 | + } |
|
55 | +} |
|
56 | +``` |
|
... | ... | \ No newline at end of file |
_Sidebar.md
... | ... | @@ -0,0 +1 @@ |
1 | +<<GlobalTOC()>> |
|
... | ... | \ No newline at end of file |
custom.css
... | ... | @@ -1,23 +1,3 @@ |
1 | -body{ |
|
2 | - border-top:5px solid #333; |
|
3 | -background:#fff url(./uploads/bg.png) repeat-x; |
|
4 | - color:#555; |
|
5 | - line-height:1.5 !important; |
|
6 | -} |
|
7 | - |
|
8 | -p, li { |
|
9 | -font-size: 1.1rem !important; |
|
10 | -} |
|
11 | - |
|
12 | -li::marker { |
|
13 | -color: #CC0000; |
|
14 | -} |
|
15 | - |
|
16 | - |
|
17 | - |
|
18 | -.text-md-left { |
|
19 | -margin-top: 3rem !important; |
|
20 | -} |
|
21 | 1 | |
22 | 2 | h1 { |
23 | 3 | color:#E87830; |
... | ... | @@ -49,25 +29,3 @@ background-color: #B4C24B; |
49 | 29 | color:white; |
50 | 30 | |
51 | 31 | } |
52 | - |
|
53 | -img { |
|
54 | -display: block; |
|
55 | -margin-left: auto; |
|
56 | -margin-right: auto; |
|
57 | -width: 90%; |
|
58 | -max-width: 600px !important; |
|
59 | - |
|
60 | -} |
|
61 | - |
|
62 | -.container-lg { |
|
63 | -max-width: 860px; |
|
64 | -margin-right: 1rem; |
|
65 | -margin-left: 1rem; |
|
66 | -padding-bottom: 3rem; |
|
67 | -} |
|
68 | - |
|
69 | -.list ul { |
|
70 | -columns: 2; |
|
71 | --webkit-columns: 2; |
|
72 | --moz-columns: 2; |
|
73 | -} |
|
... | ... | \ No newline at end of file |