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:
@@ -0,0 +1,34 @@
|
||||
# resource "kubernetes_ingress_v1" "proxy" {
|
||||
# metadata {
|
||||
# name = "ingress"
|
||||
# namespace = kubernetes_namespace.proxy.metadata[0].name
|
||||
|
||||
# annotations = {
|
||||
# "kubernetes.io/ingress.class" = "public"
|
||||
# "cert-manager.io/cluster-issuer" = "letsencrypt-prod"
|
||||
# "kubernetes.io/tls-acme" = "true"
|
||||
# "nginx.ingress.kubernetes.io/ssl-redirect" = "true"
|
||||
# }
|
||||
# }
|
||||
# spec {
|
||||
# tls {
|
||||
# hosts = [var.fqdn]
|
||||
# secret_name = "proxy-tls"
|
||||
# }
|
||||
# rule {
|
||||
# host = var.fqdn
|
||||
# http {
|
||||
# path {
|
||||
# backend {
|
||||
# service {
|
||||
# name = "upstream"
|
||||
# port {
|
||||
# number = var.proxy_port
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
Reference in New Issue
Block a user