FChannel0 / FChannel-Server

GNU Affero General Public License v3.0
106 stars 14 forks source link

Tutorial- Multiple Fchannel websites running on the same vps. #83

Open ghost opened 2 years ago

ghost commented 2 years ago

For those who do not know, Fchannel app is really nice- it has auto archive after 100 posts, a nice catalog, is super fast, and is a really nice ib- no bloat-, just a great ib. Unlike other imageboards with hundreds of dependencies and full of bloat, fchannel has very few dependencies and is easy to work with and maintain. You should learn and use fchannel- it is rapidly developing into the best known imageboard in the galaxy. Hundreds of millions of websites are predicted to use fchannel in the very near future. To help people install it, here is a tutorial for people on ubuntu vps for using systemd to run multiple instances of fchannel app on a single vps. For each instance, make a seperate server file and directory. Each separate instance needs its own database. You will have to use nginx to put each site on a new port, too. For example

/////////

quick nginx tutorial-

sudo apt-get install nginx

sudo nano /etc/nginx/sites-available/mysite.net

server { listen 80; server_name mysite.net www.mysite.net;

location / {
    proxy_set_header   X-Forwarded-For $remote_addr;
    proxy_set_header   Host $http_host;
    proxy_pass         "http://127.0.0.1:3000";
}

}

////// sudo ln -s /etc/nginx/sites-available/mysite.net /etc/nginx/sites-enabled/ ////// sudo apt install certbot python3-certbot-nginx sudo certbot --nginx -d mysite.net -d www.mysite.net

//////////

Quick systemd tutorial- nano /lib/systemd/system/fchannel.service

Put the following in the file. In this example, fchan is installed to /home/fchannel

[Unit] Description=fchannel [Service] Type=simple Restart=always RestartSec=5s ExecStart=/home/fchannel [Install] WantedBy=multi-user.target

////

To enable it on boot, type: sudo service fchannel enable to start and stop fchannel : sudo service fchannel start sudo service fchannel stop