Skip to content

Commit

Permalink
fix dashboards
Browse files Browse the repository at this point in the history
  • Loading branch information
coodyme committed Aug 6, 2024
1 parent 7c2f408 commit 2c09da2
Show file tree
Hide file tree
Showing 31 changed files with 14,922 additions and 85 deletions.
7 changes: 7 additions & 0 deletions coolify.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Coolify

Coolify is a tool to help you manage your projects. It is a collection of scripts that help you to create, build, test, and deploy your projects.

```bash
curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash
```
4 changes: 0 additions & 4 deletions docker-compose/homarr/.env.example

This file was deleted.

30 changes: 0 additions & 30 deletions docker-compose/homarr/docker-compose.yml

This file was deleted.

1 change: 1 addition & 0 deletions docker-compose/homepage/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TZ=America/Sao_Paulo
File renamed without changes.
10 changes: 10 additions & 0 deletions docker-compose/homepage/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
services:
homepage:
image: ghcr.io/gethomepage/homepage:latest
container_name: homepage
ports:
- 3000:3000
volumes:
- ../../homepage:/app/config # Make sure your local config directory exists
- ../../homepage/images:/app/public/images
- /var/run/docker.sock:/var/run/docker.sock # (optional) For docker integrations
19 changes: 19 additions & 0 deletions docker-compose/ntfy/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
TZ=America/Sao_Paulo
PUID=1000
PGID=1000

POSTGRES_HOST=nextcloud-postgres
POSTGRES_DB=
POSTGRES_USER=
POSTGRES_PASSWORD=
POSTGRES_IPV4_ADDRESS=172.27.1.3

NEXTCLOUD_TRUSTED_DOMAIN=ydooc.me 0.0.0.0 localhost
NEXTCLOUD_SUBNET=172.27.1.0/24
NEXTCLOUD_IPV4_ADDRESS=172.27.1.2

REDIS_HOST=nextcloud-redis
#REDIS_HOST_PASSWORD=
#REDIS_IPV4_ADDRESS=172.27.1.4

CRON_IPV4_ADDRESS=172.27.1.5
85 changes: 85 additions & 0 deletions docker-compose/ntfy/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# Nextcloud

Configurations to be made after installation

### Connect to the container and run the following commands to update the container and install `nano`:

```bash
apt update
```

```bash
apt install nano
```

### Change PHP memory limit

```bash
nano .htaccess
```

Add the following to the top of the `.htaccess` in your NextCloud container volume in `/var/www/html`:

```bash
php_value upload_max_filesize 16G
php_value post_max_size 16G
php_value max_input_time 3600
php_value max_execution_time 3600
php_value memory_limit 2048M
```

### Add trusted domains

Now we'll edit the config.php file with:

```bash
nano config/config.php
```

Scroll down until you find the 'trusted_domains' section:

```bash
'trusted_domains' => 
  array (
    0 => 'cloud.ydooc.me',
),
```

Then scroll down to the bottom of the file where you should see:

```bash
'installed' => true,
```

And add the following before the last `);`:

```bash
'overwriteprotocol' => 'https',
'default_phone_region' => 'BR',
'enable_previews' => true,
```

### Fix CallDAV

Now we'll edit the 000-default.conf file with:

```bash
nano /etc/apache2/sites-enabled/000-default.conf
```

Scroll to the end of the file and add the following after the `</VirtualHost>`:

```bash
Redirect 301 /.well-known/carddav https://ydooc.me/remote.php/dav
Redirect 301 /.well-known/caldav https://cloud.ydooc.me/remote.php/dav
Redirect 301 /.well-known/webdav https://cloud.ydooc.me/remote.php/dav
Redirect 301 /.well-known/webfinger https://cloud.ydooc.me/index.php
Redirect 301 /.well-known/nodeinfo https://cloud.ydooc.me/index.php
```

### Monitoring

If you are using Uptime Kuma to monitor your Nextcloud instance, you can use the following settings:

1. URL: `https://cloud.ydooc.me/cron.php`
2. Heartbeat: `180`
38 changes: 38 additions & 0 deletions docker-compose/ntfy/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
version: "3.8"

volumes:
ntfy:
name: ntfy

networks:
ntfy:
name: ntfy

services:
ntfy:
container_name: ntfy
hostname: ntfy
image: ghcr.io/maybe-finance/maybe:latest
volumes:
- ${DATA_DIR}:/rails/storage
ports:
- 3000:3000
restart: unless-stopped
environment:
SELF_HOSTING_ENABLED: "true"
RAILS_FORCE_SSL: "false"
RAILS_ASSUME_SSL: "false"
GOOD_JOB_EXECUTION_MODE: async
SECRET_KEY_BASE: ${SECRET_KEY_BASE}
DB_HOST: maybe-postgres
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
SYNTH_API_KEY: ${SYNTH_API_KEY}
networks:
- maybe
depends_on:
maybe-postgres:
condition: service_healthy


6 changes: 2 additions & 4 deletions docker-compose/uptime-kuma/.env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
TZ=
PUID=
PGID=
DATA_DIR=
DATA_DIR=
DATA_DIR=/uptime-kuma

27 changes: 12 additions & 15 deletions docker-compose/uptime-kuma/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
version: '3.7'
networks:
uptime-kuma:
external: true

volumes:
uptime-kuma:
name: uptime-kuma

services:
uptime-kuma:
Expand All @@ -9,18 +15,16 @@ services:
- 3001:3001
environment:
- TZ=$TZ
- PUID=$PUID
- PGID=$PGID
volumes:
- ${DATA_DIR}/uptime-kuma:/app/data
- ${DATA_DIR}:/app/data
security_opt:
- no-new-privileges:true
networks:
- pegasus
- uptime-kuma

docker-proxy:
uptime-kuma-docker-proxy:
image: ghcr.io/tecnativa/docker-socket-proxy:latest
container_name: docker-proxy
container_name: uptime-kuma-docker-proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
restart: unless-stopped
Expand All @@ -34,12 +38,5 @@ services:
- CONTAINERS=1
- POST=0
networks:
- pegasus
- uptime-kuma

networks:
pegasus:
external: true

volumes:
uptime-kuma:
name: uptime-kuma
2 changes: 1 addition & 1 deletion docker.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Docker
# Docker

This is a simple `Docker` setup that I use for my projects. It is based on the `docker-compose` file and LXC containers.

Expand Down
15 changes: 15 additions & 0 deletions homepage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Homepage

`Homepage` is a self-hosted dashboard solution for centralizing and organizing data and information.

To `create` or `update` a new Proxmox VE Homepage LXC, run the command below in the `Proxmox VE Shell`.

```bash
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/homepage.sh)"
```

> To customize, use configuration files (bookmarks.yaml, services.yaml, widgets.yaml and settings.yaml) located in `/homepage` and paste at `/opt/homepage/config`
> The service will be available at: `http://<IP>:3000`
> Use a YAML validator to check the syntax of the configuration files: [YAML Validator](https://codebeautify.org/yaml-validator)
15 changes: 15 additions & 0 deletions homepage/bookmarks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
- Developer:
- Github:
- abbr: GH
href: https://github.com/

- Social:
- Reddit:
- icon: reddit.png
href: https://reddit.com/
description: The front page of the internet

- Entertainment:
- YouTube:
- abbr: YT
href: https://youtube.com/
Empty file added homepage/custom.css
Empty file.
Empty file added homepage/custom.js
Empty file.
10 changes: 10 additions & 0 deletions homepage/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
# For configuration options and examples, please see:
# https://gethomepage.dev/latest/configs/docker/

# my-docker:
# host: 127.0.0.1
# port: 2375

# my-docker:
# socket: /var/run/docker.sock
Empty file added homepage/kubernetes.yaml
Empty file.
Loading

0 comments on commit 2c09da2

Please sign in to comment.