@@ -10,8 +10,10 @@ events {
10
10
worker_connections 1024;
11
11
}
12
12
13
-
14
13
http {
14
+ map_hash_bucket_size 128;
15
+ map_hash_max_size 128;
16
+ server_names_hash_bucket_size 128;
15
17
include /etc/nginx/mime.types;
16
18
default_type application/octet-stream;
17
19
@@ -41,25 +43,50 @@ http {
41
43
42
44
stream {
43
45
46
+ map_hash_bucket_size 128;
44
47
map $ssl_server_name $targetBackend {
48
+ {% if rekor_enabled %}
45
49
rekor.{{ base_hostname }} rekor-server-pod:3000;
50
+ {% endif %}
51
+ {% if tuf_enabled %}
46
52
tuf.{{ base_hostname }} tuf-pod:8080;
53
+ {% endif %}
54
+ {% if fulcio_enabled %}
47
55
fulcio.{{ base_hostname }} fulcio-server-pod:5555;
48
- keycloak.{{ base_hostname }} keycloak:8080;
56
+ {% endif %}
57
+ {% if keycloak_enabled %}
58
+ {{ keycloak_url }} keycloak:8080;
59
+ {% endif %}
49
60
}
50
61
51
62
map $ssl_server_name $targetCert {
63
+ {% if rekor_enabled %}
52
64
rekor.{{ base_hostname }} /certs/ingress-rekor.pem;
65
+ {% endif %}
66
+ {% if tuf_enabled %}
53
67
tuf.{{ base_hostname }} /certs/ingress-tuf.pem;
68
+ {% endif %}
69
+ {% if fulcio_enabled %}
54
70
fulcio.{{ base_hostname }} /certs/ingress-fulcio.pem;
55
- keycloak.{{ base_hostname }} /certs/ingress-keycloak.pem;
71
+ {% endif %}
72
+ {% if keycloak_enabled %}
73
+ {{ keycloak_url }} /certs/ingress-keycloak.pem;
74
+ {% endif %}
56
75
}
57
76
58
77
map $ssl_server_name $targetCertKey {
78
+ {% if rekor_enabled %}
59
79
rekor.{{ base_hostname }} /certs/ingress-rekor.key;
80
+ {% endif %}
81
+ {% if tuf_enabled %}
60
82
tuf.{{ base_hostname }} /certs/ingress-tuf.key;
83
+ {% endif %}
84
+ {% if fulcio_enabled %}
61
85
fulcio.{{ base_hostname }} /certs/ingress-fulcio.key;
62
- keycloak.{{ base_hostname }} /certs/ingress-keycloak.key;
86
+ {% endif %}
87
+ {% if keycloak_enabled %}
88
+ {{ keycloak_url }} /certs/ingress-keycloak.key;
89
+ {% endif %}
63
90
}
64
91
65
92
server {
@@ -75,4 +102,4 @@ stream {
75
102
proxy_pass $targetBackend;
76
103
}
77
104
78
- }
105
+ }
0 commit comments