Compare commits

..

1 commit

Author SHA1 Message Date
f2d55b704d
place holder 2023-10-25 11:56:29 -04:00
11 changed files with 15 additions and 48 deletions

View file

@ -1,6 +1,6 @@
FROM matrixdotorg/dendrite-monolith:v0.13.4 FROM matrixdotorg/dendrite-monolith:v0.13.3
RUN apk --update --no-cache add envsubst tini postgresql-client RUN apk --update --no-cache add envsubst tini
COPY dendrite.in.yaml /etc/dendrite/ COPY dendrite.in.yaml /etc/dendrite/
COPY docker-entrypoint.sh / COPY docker-entrypoint.sh /

View file

@ -1,5 +1,3 @@
* file upload/download
* 3pid/email/requestToken untrusted server '' thirdpid config of phone and email failing
* video/voice calls * video/voice calls
https://landchad.net/coturn/ https://landchad.net/coturn/
https://landchad.net/dendrite/ https://landchad.net/dendrite/

View file

@ -68,7 +68,7 @@ global:
# sections. For monolith deployments using SQLite databases, # sections. For monolith deployments using SQLite databases,
# you must configure the "database" block for each component instead. # you must configure the "database" block for each component instead.
database: database:
connection_string: ${DATABASE_URL}?sslmode=disable connection_string: ${DATABASE_URL}
max_open_conns: 90 max_open_conns: 90
max_idle_conns: 5 max_idle_conns: 5
conn_max_lifetime: -1 conn_max_lifetime: -1
@ -108,7 +108,6 @@ global:
trusted_third_party_id_servers: trusted_third_party_id_servers:
- matrix.org - matrix.org
- vector.im - vector.im
- matrix.burd.me
# Disables federation. Dendrite will not be able to communicate with other servers # Disables federation. Dendrite will not be able to communicate with other servers
# in the Matrix federation and the federation API will not be exposed. # in the Matrix federation and the federation API will not be exposed.
@ -340,7 +339,7 @@ sync_api:
# This option controls which HTTP header to inspect to find the real remote IP # This option controls which HTTP header to inspect to find the real remote IP
# address of the client. This is likely required if Dendrite is running behind # address of the client. This is likely required if Dendrite is running behind
# a reverse proxy server. # a reverse proxy server.
real_ip_header: X-Client-IP # real_ip_header: X-Real-IP
# Configuration for the full-text search engine. # Configuration for the full-text search engine.
search: search:

View file

@ -3,9 +3,6 @@
# See https://fly.io/docs/reference/configuration/ for information about how to use this file. # See https://fly.io/docs/reference/configuration/ for information about how to use this file.
# #
[env]
FLY_SCALE_TO_ZERO = "1h"
app = "burd-infra-dendrite" app = "burd-infra-dendrite"
primary_region = "bos" primary_region = "bos"
kill_signal = "SIGINT" kill_signal = "SIGINT"

View file

@ -5,8 +5,9 @@ This deploys a Docker Daemon running on Fly.io which you can used to offload bui
## Installation ## Installation
1. Clone this repository 1. Clone this repository
1. `fly launch --no-deploy`, follow the prompts 1. `fly launch`, follow the prompts
1. Create a volume in a region of your choice: `fly volumes create data --size 50 --region bos` 1. Select `n` when it asks if you want to deploy
1. Create a volume in a region of your choice: `fly volumes create data --size 50 --region ord`
1. Deploy 1. Deploy
## Get Connected ## Get Connected
@ -16,7 +17,7 @@ This deploys a Docker Daemon running on Fly.io which you can used to offload bui
1. `fly ips private` to get the IP of your Daemon 1. `fly ips private` to get the IP of your Daemon
1. Set the `DOCKER_HOST` env variable using that IP: 1. Set the `DOCKER_HOST` env variable using that IP:
``` ```
export DOCKER_HOST=tcp://[fdaa:1:c1ea:a7b:1ed:2ce6:bb1e:2]:2375 export DOCKER_HOST=tcp://[fdaa:0:5d2:a7b:81:0:26d4:2]:2375
``` ```
# Final Step # Final Step

View file

@ -1,22 +1,13 @@
# fly.toml app configuration file generated for burd-infra-docker-machine on 2023-11-22T14:28:06-05:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = "burd-infra-docker-machine" app = "burd-infra-docker-machine"
primary_region = "bos"
kill_signal = "SIGINT" kill_signal = "SIGINT"
kill_timeout = "5s" kill_timeout = 5
[build] [mounts]
[[mounts]]
source = "docker_data"
destination = "/data" destination = "/data"
source = "docker_data"
[[services]] [[services]]
protocol = "tcp" protocol = "tcp"
internal_port = 2375 internal_port = 2375
[[services.ports]] [[services.ports]]
port = 2375 port = 2375

View file

@ -33,20 +33,6 @@ This deploys Drone.io, CI builder for Forgejo (was Gitea).
1. Delete the Docker Engine from your local system. 1. Delete the Docker Engine from your local system.
1. You probably want to scale your remote Daemon: `fly scale vm dedicated-cpu-2x` and `fly scale memory 2048` 1. You probably want to scale your remote Daemon: `fly scale vm dedicated-cpu-2x` and `fly scale memory 2048`
```shell
docker run --detach \
--volume=/var/run/docker.sock:/var/run/docker.sock \
--env=DRONE_RPC_PROTO=https \
--env=DRONE_RPC_HOST=build.burd.me \
--env=DRONE_RPC_SECRET=70619c6241d757e8935c9a7d \
--env=DRONE_RUNNER_CAPACITY=2 \
--env=DRONE_RUNNER_NAME=my-laptop-runner \
--publish=3000:3000 \
--name=runner \
drone/drone-runner-docker:1
```
--restart=always \
# NOTES: # NOTES:
* https://docs.drone.io/server/provider/gitea/ * https://docs.drone.io/server/provider/gitea/

View file

@ -9,7 +9,6 @@ kill_signal = "SIGINT"
kill_timeout = "5s" kill_timeout = "5s"
[experimental] [experimental]
allowed_public_ports = []
auto_rollback = true auto_rollback = true
[build] [build]
@ -19,7 +18,7 @@ kill_timeout = "5s"
DRONE_JSONNET_ENABLED = "true" DRONE_JSONNET_ENABLED = "true"
DRONE_REGISTRATION_CLOSED = "true" DRONE_REGISTRATION_CLOSED = "true"
DRONE_RPC_HOST = "build.burd.me" DRONE_RPC_HOST = "build.burd.me"
DRONE_RPC_PROTO = "http" DRONE_RPC_PROTO = "https"
DRONE_RUNNER_CAPACITY = "1" DRONE_RUNNER_CAPACITY = "1"
DRONE_SERVER_HOST = "build.burd.me" DRONE_SERVER_HOST = "build.burd.me"
DRONE_SERVER_PROTO = "https" DRONE_SERVER_PROTO = "https"
@ -35,10 +34,8 @@ kill_timeout = "5s"
processes = ["server"] processes = ["server"]
[[services]] [[services]]
http_checks = []
protocol = "tcp" protocol = "tcp"
internal_port = 80 internal_port = 80
script_checks = []
processes = ["server"] processes = ["server"]
[[services.ports]] [[services.ports]]
@ -57,5 +54,4 @@ kill_timeout = "5s"
[[services.tcp_checks]] [[services.tcp_checks]]
interval = "15s" interval = "15s"
timeout = "2s" timeout = "2s"
restart_limit = 0
grace_period = "1s" grace_period = "1s"

View file

@ -13,7 +13,7 @@ swap_size_mb = 512
auto_rollback = true auto_rollback = true
[build] [build]
image = "codeberg.org/forgejo/forgejo:8.0.3" image = "codeberg.org/forgejo/forgejo:1.20.5-0"
[env] [env]
GITEA____APP_NAME = "git.burd.me: Git for us" GITEA____APP_NAME = "git.burd.me: Git for us"
@ -51,7 +51,6 @@ swap_size_mb = 512
# GITEA__storage__MINIO_SECRET_ACCESS_KEY = [use fly secrets set ..., see README.md] # GITEA__storage__MINIO_SECRET_ACCESS_KEY = [use fly secrets set ..., see README.md]
GITEA__storage__MINIO_BUCKET = "burd-infra-forgejo-4276-a538" GITEA__storage__MINIO_BUCKET = "burd-infra-forgejo-4276-a538"
GITEA__storage__MINIO_LOCATION = "us-west-000" GITEA__storage__MINIO_LOCATION = "us-west-000"
GITEA__storage__MINIO_CHECKSUM_ALGORITHM = "md5"
[[mounts]] [[mounts]]
source = "forgejo_data" source = "forgejo_data"

2
renovate/README.md Normal file
View file

@ -0,0 +1,2 @@
https://loganmarchione.com/2022/10/how-to-run-renovate-on-a-self-hosted-gitea-and-drone-instance/

View file

@ -5,8 +5,6 @@ pkgs.mkShell {
nativeBuildInputs = with pkgs.buildPackages; [ nativeBuildInputs = with pkgs.buildPackages; [
ripgrep ripgrep
envsubst envsubst
postgresql
netlify-cli
]; ];
DOCKER_BUILDKIT = 1; DOCKER_BUILDKIT = 1;
} }