You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
848 B
YAML
30 lines
848 B
YAML
apiVersion: extensions/v1beta1
|
|
kind: Ingress
|
|
metadata:
|
|
name: mailu-antispam-ingress
|
|
namespace: mailu-mailserver
|
|
annotations:
|
|
kubernetes.io/tls-acme: "true"
|
|
certmanager.k8s.io/cluster-issuer: letsencrypt-stage
|
|
ingress.kubernetes.io/configuration-snippet: |
|
|
rewrite ^/admin/antispam/(.*) /$1 break;
|
|
auth_request /internal/auth/admin;
|
|
proxy_set_header X-Real-IP "";
|
|
proxy_set_header X-Forwarded-For "";
|
|
labels:
|
|
app: mailu
|
|
role: mail
|
|
tier: frontend
|
|
spec:
|
|
tls:
|
|
- hosts:
|
|
- "mail.example.com"
|
|
secretName: letsencrypt-certs-all # If unsure how to generate these, check out https://github.com/ployst/docker-letsencrypt
|
|
rules:
|
|
- host: "mail.example.com"
|
|
http:
|
|
paths:
|
|
- path: "/admin/antispam"
|
|
backend:
|
|
serviceName: antispam
|
|
servicePort: 11334 |