https://github.com/levy-y/selhosted-help
Some info and help, on how to fix certain self-hosted apps, that I was struggling with
https://github.com/levy-y/selhosted-help
fixes help homelab selfhosted
Last synced: 5 months ago
JSON representation
Some info and help, on how to fix certain self-hosted apps, that I was struggling with
- Host: GitHub
- URL: https://github.com/levy-y/selhosted-help
- Owner: Levy-Y
- Created: 2024-05-17T09:49:41.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-17T10:17:43.000Z (about 2 years ago)
- Last Synced: 2025-01-08T23:59:33.194Z (over 1 year ago)
- Topics: fixes, help, homelab, selfhosted
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Some info and help, on how to fix certain self-hosted apps, that I was struggling with
# Problems and fixes:
## Problem #1: Twingate connector status flipping on and off
### Solution
- Installing a timesync service on the vm/server
- Step 1 install chrony:
```bash
sudo apt install chrony -y
```
- Step 2 edit the chrony.conf file:
```bash
nano /etc/chrony.conf
```
- Step 3 edit the config file to look like the following image:

- Step 4 (optional) test the timeserver:
```bash
chronyd -q 'server 0.europe.pool.ntp.org iburst'
```
- Step 5 start chrony:
```bash
systemctl start chronyd
```
- Step 6 enable chrony on system start:
```bash
systemctl enable chronyd
```
## Problem #2: Nextcloud client cannot connect to server behind reverse proxy, reverse proxy url not trusted
### Solution
- Editing the config.php of the nextcloud instance
- Step 1 open the config.php (you can find the file in the config in the YOURNEXTCLOUDFOLDER/config/ folder if installed with docker)
```bash
nano YOURNEXTCLOUDFOLDER/config/config.php
```
Edit the file to have something like this in the config:
```php
'trusted_domains' =>
array (
0 => '192.168.1.xx:12345',
10 => 'yournextcloudreverseproxyurl.com',
),
'overwrite.cli.url' => 'https://yournextcloudreverseproxyurl.com',
'overwriteprotocol' => 'https',
```
- Step 2 save the file and restart the nextcloud container
```bash
sudo docker restart NEXTCLOUDCONTAINERNAME_OR_ID
```
## Problem #3: Nginx Proxy Manager cannot create SSL cert with letsencrypt
### Solution
- Using an older release of the container solves the issue (atleast it worked for me)
- Step 1 modify the docker-compose.yml used to create the container to use an older version
```bash
nano PATHTOFILE/docker-compose.yml
```
```yaml
version: "3"
services:
nginxproxymanager:
image: 'jc21/nginx-proxy-manager:2.11.0'
restart: unless-stopped
ports:
- '80:80'
- '443:443'
- '81:81'
volumes:
- ./nginxproxymanager/data:/data
- ./nginxproxymanager/letsencrypt:/etc/letsencrypt
```
*Note: you should use the 2.11.0 version of the image, as that works 99% of the time*
- Step 2 restart the container
```bash
sudo docker-compose restart
```