Compare commits

..

9 Commits

Author SHA1 Message Date
SauravDhakal
e584b9ae20 fix: Make it push pushable 2026-04-11 21:36:35 +05:45
SauravDhakal
1026fd6ff2 fix: gitea fix 2026-04-11 21:24:41 +05:45
SauravDhakal
39013db669 chore: Make gitea public 2026-04-11 21:16:37 +05:45
SauravDhakal
0b512943b9 fix: container name mismatch 2026-04-06 22:37:04 +05:45
SauravDhakal
c663860e6e fix: psql version 18 config 2026-04-06 22:31:33 +05:45
SauravDhakal
4aa1e43345 fix: remove repeted imaeg 2026-04-06 22:28:28 +05:45
SauravDhakal
a6fbe9e375 feat: docmost 2026-04-06 22:27:08 +05:45
SauravDhakal
ed2bd87f61 fix: back to private 2026-04-03 22:03:53 +05:45
SauravDhakal
b1d13778f4 fix: make gitea public 2026-04-03 21:16:33 +05:45
5 changed files with 76 additions and 4 deletions

2
.gitignore vendored
View File

@@ -6,3 +6,5 @@ caddy/data/
caddy/config/
filebrowser/
.claude/

View File

@@ -73,10 +73,25 @@ uptime.sauravdhakal.com.np {
reverse_proxy localhost:3001
}
# Gitea — VPN only, it's your private git server
# -----------------------------------------------
# Gitea — PUBLIC WEB UI
# Gitea's built-in auth handles write restrictions
# -----------------------------------------------
gitea.sauravdhakal.com.np {
bind 100.81.85.182
reverse_proxy localhost:3000
# Allow public access (no bind = all interfaces)
# Security headers
header {
X-Content-Type-Options nosniff
X-Frame-Options DENY
Referrer-Policy strict-origin-when-cross-origin
}
reverse_proxy localhost:3000 {
header_up X-Real-IP {remote_host}
header_up X-Forwarded-For {remote_host}
}
}
# Woodpecker CI — VPN only
@@ -108,6 +123,11 @@ dozzle.sauravdhakal.com.np {
bind 100.81.85.182
reverse_proxy localhost:8888
}
docs.sauravdhakal.com.np {
bind 100.81.85.182
reverse_proxy localhost:3030
}
#
# glances.sauravdhakal.com.np {
# bind 100.81.85.182

View File

@@ -12,6 +12,7 @@ include:
- services/woodpecker.yml
- services/gitea.yml
- services/memos.yml
- services/docmost.yml
networks:
caddy_net:

44
services/docmost.yml Normal file
View File

@@ -0,0 +1,44 @@
services:
docmost:
image: docmost/docmost:latest
depends_on:
- docmost_db
- docmost_redis
environment:
- APP_URL=https://docs.sauravdhakal.com.np
- APP_SECRET=${DOCMOST_APP_SECRET}
- DATABASE_URL=postgresql://docmost:${DOCMOST_DB_PASSWORD}@docmost_db:5432/docmost
- REDIS_URL=redis://docmost_redis:6379
ports:
- "127.0.0.1:3030:3000"
restart: unless-stopped
volumes:
- /home/saurav/hetzner_self/data/docmost/storage:/app/data/storage
networks:
- docmost_internal
docmost_db:
image: postgres:18
environment:
- POSTGRES_DB=docmost
- POSTGRES_USER=docmost
- POSTGRES_PASSWORD=${DOCMOST_DB_PASSWORD}
restart: unless-stopped
volumes:
- /home/saurav/hetzner_self/data/docmost/db:/var/lib/postgresql
networks:
- docmost_internal
docmost_redis:
image: redis:8-alpine
command: ["redis-server", "--appendonly", "yes", "--maxmemory-policy", "noeviction"]
restart: unless-stopped
volumes:
- /home/saurav/hetzner_self/data/docmost/redis:/data
networks:
- docmost_internal
networks:
docmost_internal:
driver: bridge

View File

@@ -14,6 +14,11 @@ services:
- GITEA__server__ROOT_URL=https://gitea.sauravdhakal.com.np
- GITEA__server__SSH_DOMAIN=gitea.sauravdhakal.com.np
- GITEA__server__SSH_PORT=2222
- GITEA__service__DISABLE_REGISTRATION=true # only you use this
# Allow public access but disable registration
- GITEA__service__DISABLE_REGISTRATION=true
# Require login to push (read is public)
- GITEA__repository__DISABLE_HTTP_GIT=false
- GITEA__security__INSTALL_LOCK=true
volumes:
- /home/saurav/hetzner_self/data/gitea:/data