homer. draft. Solves #10.

This commit is contained in:
Alexey Skobkin 2022-03-15 05:09:06 +03:00
parent 6ead9b6ecc
commit ca8ca9179c
5 changed files with 52 additions and 0 deletions

View file

@ -32,6 +32,7 @@ Not every stack is tested to fully work.
| Folding@Home | ✅ | `johnktims/folding-at-home` | Protein folding distributed computing platform. | [Website](https://foldingathome.org), [My guide](https://skobk.in/2020/06/folding-at-home-quick-start/) |
| Gatus | ✅ | `twinproduction/gatus` | Advanced service(s) status page. | [Website](https://gatus.io), [Github](https://github.com/TwiN/gatus) |
| Gitea | ✅ | `gitea/gitea` | Lightweight Git hosting platfom. | [Website](https://gitea.io/), [Github](https://github.com/go-gitea/gitea) |
| Homer | ✅ | `b4bz/homer` | Server homepage generator. | [Github](https://github.com/bastienwirtz/homer), [Demo](https://homer-demo.netlify.app) |
| I2PD | ✅ | `purplei2p/i2pd` | The Invisible Internet router. | [Website](https://i2pd.website), [Github](https://github.com/PurpleI2P/i2pd/), [I2P project](https://geti2p.net/) |
| ~~JDownloader~~ | ✅ Abandoned | `jaymoulin/jdownloader` | Download manager with paid/ad file hosting support. | [Website](https://jdownloader.org) |
| ~~Joplin~~ | ✅ Abandoned | `joplin/server` | Markdown GTD / notes manager synchronization server. | [Website](https://joplinapp.org), [Github](https://github.com/laurent22/joplin) |

10
homer/.env.dist Normal file
View file

@ -0,0 +1,10 @@
# see https://github.com/bastienwirtz/homer#using-docker-compose
HOST_USER=1000
HOST_DATA_DIR=./data
WEBUI_BIND_ADDR=127.0.0.1
WEBUI_BIND_PORT=8084
LOG_MAX_SIZE=5m
LOG_MAX_FILE=5

2
homer/data/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
/*
!/.gitignore

21
homer/docker-compose.yml Normal file
View file

@ -0,0 +1,21 @@
# https://hub.docker.com/r/b4bz/homer
version: '3.7'
services:
homer:
image: b4bz/homer
container_name: homer
volumes:
- "${HOST_DATA_DIR:-./data}:/www/assets"
ports:
- "${WEBUI_BIND_ADDR:-127.0.0.1}:${WEBUI_BIND_PORT:-8084}:8080/tcp"
environment:
- "UID=${HOST_USER:-1000}"
- "GID=${HOST_USER:-1000}"
env_file: .env
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "${LOG_MAX_SIZE:-5m}"
max-file: "${LOG_MAX_FILE:-5}"

18
homer/nginx/homer.conf Normal file
View file

@ -0,0 +1,18 @@
server {
listen 80;
server_name home.domain.tld;
#charset utf-8;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
proxy_pass http://127.0.0.1:8084/;
}
}