10 Commits

Author SHA1 Message Date
cd84d66fc8 chore(release): v0.5.8 (#17)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
chore(release): 0.5.8

Co-authored-by: cuddle-please <bot@cuddle.sh>
Reviewed-on: https://git.front.kjuulh.io/kjuulh/clank-node/pulls/17
2025-01-12 14:23:22 +01:00
b7a50ec2de fix: should've been equal
All checks were successful
continuous-integration/drone/push Build is passing
2025-01-12 14:22:37 +01:00
2010b4328d chore(release): v0.5.7 (#16)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
chore(release): 0.5.7

Co-authored-by: cuddle-please <bot@cuddle.sh>
Reviewed-on: https://git.front.kjuulh.io/kjuulh/clank-node/pulls/16
2025-01-12 14:20:59 +01:00
e34b5f7b7b feat: add trigger
All checks were successful
continuous-integration/drone/push Build is passing
2025-01-12 14:20:19 +01:00
71963be181 chore(release): v0.5.6 (#15)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
chore(release): 0.5.6

Co-authored-by: cuddle-please <bot@cuddle.sh>
Reviewed-on: https://git.front.kjuulh.io/kjuulh/clank-node/pulls/15
2025-01-12 14:11:36 +01:00
50eeb579ce feat: remove range from ip
All checks were successful
continuous-integration/drone/push Build is passing
2025-01-12 14:11:00 +01:00
d228a92932 chore(release): v0.5.5 (#14)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
chore(release): 0.5.5

Co-authored-by: cuddle-please <bot@cuddle.sh>
Reviewed-on: https://git.front.kjuulh.io/kjuulh/clank-node/pulls/14
2025-01-12 14:05:25 +01:00
56eea90eff chore: add caddy extension
All checks were successful
continuous-integration/drone/push Build is passing
2025-01-12 14:04:50 +01:00
57199a21e8 chore(release): v0.5.4 (#13)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
chore(release): 0.5.4

Co-authored-by: cuddle-please <bot@cuddle.sh>
Reviewed-on: https://git.front.kjuulh.io/kjuulh/clank-node/pulls/13
2025-01-12 14:03:08 +01:00
57fd18ba04 fix: add port for proxy
All checks were successful
continuous-integration/drone/push Build is passing
2025-01-12 14:02:33 +01:00
4 changed files with 37 additions and 2 deletions

View File

@@ -6,6 +6,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [0.5.8] - 2025-01-12
### Fixed
- should've been equal
## [0.5.7] - 2025-01-12
### Added
- add trigger
## [0.5.6] - 2025-01-12
### Added
- remove range from ip
## [0.5.5] - 2025-01-12
### Other
- add caddy extension
## [0.5.4] - 2025-01-12
### Fixed
- add port for proxy
## [0.5.3] - 2025-01-12 ## [0.5.3] - 2025-01-12
### Added ### Added

View File

@@ -1,4 +1,4 @@
@${name}-node ${replace(name, "_", "-")}.nodes.i.kjuulh.io @${name}-node ${replace(name, "_", "-")}.nodes.i.kjuulh.io
handle ${name}-node { handle ${name}-node {
reverse-proxy ${ip}:80 reverse-proxy ${split("/", ip)[0]}:80
} }

View File

@@ -41,16 +41,21 @@ resource "null_resource" "cloud_init_deb12_node" {
} }
resource "null_resource" "node_caddy_template" { resource "null_resource" "node_caddy_template" {
triggers = {
file_content = filemd5(local_file.node_caddy.filename)
}
connection { connection {
type = "ssh" type = "ssh"
user = "root" user = "root"
private_key = var.ssh_private private_key = var.ssh_private
host = var.proxy_ip host = var.proxy_ip
port = var.proxy_port
} }
provisioner "file" { provisioner "file" {
source = local_file.node_caddy.filename source = local_file.node_caddy.filename
destination = "${var.proxy_location}/${var.name}.yml" destination = "${var.proxy_location}/${var.name}.caddy"
} }
depends_on = [ depends_on = [

View File

@@ -13,6 +13,11 @@ variable "proxy_ip" {
default = "10.0.9.0" default = "10.0.9.0"
} }
variable "proxy_port" {
description = "which port to use for the caddy file"
default = 222
}
variable "proxy_location" { variable "proxy_location" {
description = "which where to place the files upstream" description = "which where to place the files upstream"
default = "/root/wireguard/nodes" default = "/root/wireguard/nodes"