Compare commits
14 Commits
Author | SHA1 | Date | |
---|---|---|---|
a8ceee4044 | |||
9087b75d5b | |||
8d7aea6894 | |||
b793003532 | |||
cd84d66fc8 | |||
b7a50ec2de | |||
2010b4328d | |||
e34b5f7b7b | |||
71963be181 | |||
50eeb579ce | |||
d228a92932 | |||
56eea90eff | |||
57199a21e8 | |||
57fd18ba04 |
30
CHANGELOG.md
30
CHANGELOG.md
@ -6,6 +6,36 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.5.10] - 2025-01-13
|
||||
|
||||
### Fixed
|
||||
- make sure to not brick my reverse proxy
|
||||
|
||||
## [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
|
||||
|
||||
### Added
|
||||
|
@ -1,4 +1,4 @@
|
||||
@${name}-node ${replace(name, "_", "-")}.nodes.i.kjuulh.io
|
||||
handle ${name}-node {
|
||||
reverse-proxy ${ip}:80
|
||||
handle @${name}-node {
|
||||
reverse_proxy ${split("/", ip)[0]}:80
|
||||
}
|
||||
|
7
node.tf
7
node.tf
@ -41,16 +41,21 @@ resource "null_resource" "cloud_init_deb12_node" {
|
||||
}
|
||||
|
||||
resource "null_resource" "node_caddy_template" {
|
||||
triggers = {
|
||||
file_content = fileexists(local_file.node_caddy.filename) ? filemd5(local_file.node_caddy.filename) : timestamp()
|
||||
}
|
||||
|
||||
connection {
|
||||
type = "ssh"
|
||||
user = "root"
|
||||
private_key = var.ssh_private
|
||||
host = var.proxy_ip
|
||||
port = var.proxy_port
|
||||
}
|
||||
|
||||
provisioner "file" {
|
||||
source = local_file.node_caddy.filename
|
||||
destination = "${var.proxy_location}/${var.name}.yml"
|
||||
destination = "${var.proxy_location}/${var.name}.caddy"
|
||||
}
|
||||
|
||||
depends_on = [
|
||||
|
@ -13,6 +13,11 @@ variable "proxy_ip" {
|
||||
default = "10.0.9.0"
|
||||
}
|
||||
|
||||
variable "proxy_port" {
|
||||
description = "which port to use for the caddy file"
|
||||
default = 222
|
||||
}
|
||||
|
||||
variable "proxy_location" {
|
||||
description = "which where to place the files upstream"
|
||||
default = "/root/wireguard/nodes"
|
||||
|
Loading…
Reference in New Issue
Block a user