https://projects.davidplanella.org/open-source/gollum-wiki-installation
hướng dẫn install và config gollum, 1 cái app quản lý data dùng git
làm revision control và markdown để edit.
có thể học từ đây cách config 1 cái web app ruby và config nginx
sudo apt install nginx
We will start by creating an Nginx virtual host that listens to port
80, and sets up the reverse proxy that forwards the client requests to
Gollum's web server. Let's define it in the usual Nginx way:
sudo vim /etc/nginx/sites-available/example.com.conf
File contents:
upstream gollum_app_webrick_server {
server localhost:4567;
}
server {
listen 80;
server_name $YOUR_SERVER_NAME_OR_IP;
location / {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Scheme $scheme;
proxy_redirect off;
proxy_pass http://gollum_app_webrick_server;
}
}
Finally, we simply need to enable the configured site. Again, in the
usual Nginx way:
sudo ln -s /etc/nginx/sites-enabled/example.com
/etc/nginx/sites-available/example.com.conf
No comments:
Post a Comment