Add custom error pages and Nginx configuration for proxy module

- Introduced custom HTML error pages for various HTTP status codes (400, 401, 403, 404, 408, 429, 500, 502, 503, 504) in the proxy module.
- Created a .gitignore file to exclude non-HTML files in the error resources directory.
- Updated Nginx configuration to serve custom error pages for upstream errors.
- Added new Nginx configuration templates for handling HTTP and stream protocols.
- Implemented Wireguard configuration templates and associated variables for secure connections.
- Established Kubernetes resources for Stunnel and Wireguard, including deployment, service accounts, and config maps.
- Defined variables for the Stunnel and Wireguard modules to facilitate configuration.
- Created a new Wol Proxy module with Kubernetes resources for deployment and service management.
This commit is contained in:
2025-10-02 00:19:01 +02:00
parent 4d00986273
commit e6a3f3affd
62 changed files with 1517 additions and 99 deletions
+15 -4
View File
@@ -54,6 +54,10 @@ module "mail" {
mail_crypt_public_key = var.mail_crypt_public_key
ca_pem = var.root_ca_pem
# For now we need to use host networking because of the fail2ban integration
postfix_use_host_networking = true
dovecot_use_host_networking = true
}
module "gitea" {
@@ -116,11 +120,18 @@ module "ssh_locker_web" {
socket_path = "/var/run/ssh_locker/provision.sock"
}
module "reverse_proxy" {
source = "../../modules/apps/nginx-reverse-proxy"
module "proxy" {
source = "../../modules/utils/proxy"
services = local.reverse_proxy_services
wireguard_config = local.reverse_proxy_wireguard_config
auth_token = var.nginx_token_bearer
services = local.proxy_services
streams = local.streams
wireguard_config = local.wireguard_config
}
module "prometheus" {
source = "../../modules/utils/prometheus"
persistent_folder = "${local.persistent_folder}/monitoring"
config = file("${path.module}/resources/prometheus.yml")
}