dmzconf/kralizec/dmzrs/README.md

41 lines
1.0 KiB
Markdown
Raw Normal View History

Add this configuration to `~/.ssh/config` file
2024-01-05 10:38:37 +00:00
```
2024-01-05 10:38:37 +00:00
Host dmzkrovdmzrs12
Hostname veyxphzuqnooc7wb7utfza3joaoopgqgwp6l6d4en5yfmyr7kxvminqd.onion
User root
IdentityFile ~/.ssh/id_rsa
PasswordAuthentication no
```
2024-01-05 10:38:37 +00:00
Now you can log in by typing:
```bash
2024-01-05 10:38:37 +00:00
torsocks ssh dmzkrovdmzrs12
```
2024-01-05 10:38:37 +00:00
Install all needed packages:
```bash
2024-01-05 10:38:37 +00:00
apt install rsync git nginx
git clone https://gitea.dmz.rs/Decentrala/website
```
2024-01-05 10:38:37 +00:00
Run `updatewebsite.sh` script every minute using `crontab` (run "`crontab -e`")
This fill automatically pull from git repo and regenerate events page
2024-01-05 10:38:37 +00:00
Add `nginx-dmz.rs.conf` to `/etc/nginx/sites-available/dmz.rs` and create a symlink
from `/etc/nginx/sites-enabled/dmz.rs` to that file.
2024-01-05 10:38:37 +00:00
You can do this by running:
```bash
2024-01-05 10:38:37 +00:00
ln -s /etc/nginx/sites-available/dmz.rs /etc/nginx/sites-enabled/dmz.rs
```
2024-01-05 10:38:37 +00:00
Increase `server_names_hash_bucket_size` to 256 in `/etc/nginx/nginx.conf` in order to support onion addresses.
2024-01-05 10:38:37 +00:00
In the `nginx` configuration /account/ is redirected to the `luser` [instance](https://gitea.dmz.rs/fram3d/luser) running at `192.168.1.211`.