mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/selfhosting-blogposts.git
synced 2025-05-16 20:27:00 +00:00
add selfhosting tutorials
This commit is contained in:
parent
95c33c8b41
commit
cc3824e6a2
1900 changed files with 32727 additions and 0 deletions
106
rainloop/index.md
Normal file
106
rainloop/index.md
Normal file
|
@ -0,0 +1,106 @@
|
|||
# Rainloop Setup
|
||||
|
||||
Rent a VPS with debian 10+ (or just run it yourself, but make sure it is correctly port forwarded so that public ip points to the machine like a vps).
|
||||
|
||||
Once you have ssh'd into your debian server as root, we can start:
|
||||
|
||||
## **Initial Setup**
|
||||
|
||||
First install all the dependencies:
|
||||
|
||||
|
||||
apt install php7.4 php7.4-common php7.4-curl php7.4-xml php7.4-fpm php7.4-json php7.4-dev php7.4-mysql nginx curl socat unzip -y
|
||||
|
||||
|
||||
|
||||
Then configure nginx:
|
||||
|
||||
|
||||
wget https://blog.nowhere.moe/servers/rainloop/rainloop.conf -O /etc/nginx/sites-available/rainloop.conf
|
||||
nano /etc/nginx/sites-available/rainloop.conf
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
Here make sure you edit the configuration file properly so that the domain name matches your own domain name. once you're done editing the file, hit CTRL+S to save and CTRL+X to exit nano. If you don't have a domain name, just go for a free alternative like [DuckDNS](https://www.duckdns.org).
|
||||
|
||||

|
||||
|
||||
You can verify it is working by doing the following:
|
||||
|
||||

|
||||
|
||||
Next we're going to get a free letsencrypt SSL certificate using acme.sh:
|
||||
|
||||
|
||||
wget -O - https://get.acme.sh | sh
|
||||
source ~/.bashrc
|
||||
systemctl stop nginx
|
||||
acme.sh --issue --standalone -d ech2.duckdns.org -k 4096
|
||||
systemctl start nginx
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
Next we enable the site:
|
||||
|
||||
|
||||
ln -s /etc/nginx/sites-available/rainloop.conf /etc/nginx/sites-enabled/rainloop.conf
|
||||
nginx -t
|
||||
systemctl restart nginx
|
||||
|
||||
|
||||
Once that's done, reload nginx and install rainloop:
|
||||
|
||||
|
||||
cd /opt
|
||||
wget http://www.rainloop.net/repository/webmail/rainloop-community-latest.zip
|
||||
unzip rainloop-community-latest.zip -d /var/www/
|
||||
chown www-data: -R /var/www/
|
||||
|
||||
|
||||
|
||||
Next configure php7.4-fpm correctly:
|
||||
|
||||
|
||||
cd /etc/php/7.4/
|
||||
|
||||
echo 'date.timezone = Europe/Paris' >> fpm/php.ini
|
||||
echo 'date.timezone = Europe/Paris' >> cli/php.ini
|
||||
|
||||
systemctl enable --now php7.4-fpm nginx
|
||||
systemctl restart php7.4-fpm nginx
|
||||
|
||||
|
||||
Once that's done, simply browse to your website:
|
||||
|
||||

|
||||
|
||||
You need to browse to the url "https://ech2.duckdns.org/?admin", The default admin password is admin:12345
|
||||
|
||||

|
||||
|
||||
Once you're logged in, make sure to change the admin password
|
||||
|
||||
 
|
||||
|
||||
And you're done! now you simply need to configure rainloop and test if it is working, so log out, and go back to the root directory https://ech2.duckdns.org/:
|
||||
|
||||
##
|
||||
|
||||
## **Linking it to an existing SMTP server**
|
||||
|
||||
Follow this [tutorial](../mail2/index.md) on how to setup a SMTP server:
|
||||
|
||||
   
|
||||
|
||||
And now try to login:
|
||||
|
||||

|
||||
|
||||
And that's it! We managed to login:
|
||||
|
||||

|
||||
|
Loading…
Add table
Add a link
Reference in a new issue