File tree 2 files changed +26
-41
lines changed
2 files changed +26
-41
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
# Enable admin API for clustering
3
3
admin off
4
-
5
- # Global ACME DNS configuration for all sites
6
- acme_dns cloudns {
7
- auth_id "{$CLOUDNS_AUTH_ID}"
8
- auth_password "{$CLOUDNS_AUTH_PASSWORD}"
9
- }
10
-
11
- tls {
12
- acme {
13
- resolvers 1.1.1.1 1.0.0.1
14
- disable_tlsalpn_challenge
15
- disable_http_challenge
16
- dns_ttl 30s
17
- }
18
- }
19
-
20
4
# Configure storage for clustering
21
5
storage etcd {
22
6
prefix "{$PORTAL_CORE_CLUSTERED_ETCD_PREFIX}"
37
21
}
38
22
}
39
23
40
- # Handle all domains matching the PORTAL_CORE_DOMAIN
41
- *. {$PORTAL_CORE_DOMAIN} {
42
- reverse_proxy localhost:{$PORTAL_CORE_PORT}
24
+ # HTTP to HTTPS redirect
25
+ http://*.{$PORTAL_CORE_DOMAIN}, http:// {$PORTAL_CORE_DOMAIN} {
26
+ redir https://{host}{uri} permanent
43
27
}
44
28
45
- # Handle direct domain access
46
- :80, :443 {
29
+ # Handle all HTTPS domains
30
+ *.{$PORTAL_CORE_DOMAIN}, {$PORTAL_CORE_DOMAIN} {
31
+ tls {
32
+ dns_ttl 30s
33
+ resolvers 1.1.1.1 1.0.0.1
34
+ dns cloudns {
35
+ auth_id "{$CLOUDNS_AUTH_ID}"
36
+ auth_password "{$CLOUDNS_AUTH_PASSWORD}"
37
+ }
38
+ }
47
39
reverse_proxy localhost:{$PORTAL_CORE_PORT}
48
40
}
Original file line number Diff line number Diff line change 2
2
# Enable admin API for clustering
3
3
admin off
4
4
5
- # Global ACME DNS configuration for all sites
6
- acme_dns cloudns {
7
- auth_id "{$CLOUDNS_AUTH_ID}"
8
- auth_password "{$CLOUDNS_AUTH_PASSWORD}"
9
- }
10
-
11
- tls {
12
- acme {
13
- resolvers 1.1.1.1 1.0.0.1
14
- disable_tlsalpn_challenge
15
- disable_http_challenge
16
- dns_ttl 30s
17
- }
18
- }
19
-
20
5
# Configure storage for clustering
21
6
storage etcd {
22
7
prefix "{$PORTAL_CORE_CLUSTERED_ETCD_PREFIX}"
31
16
}
32
17
}
33
18
34
- # Handle all domains matching the PORTAL_CORE_DOMAIN
35
- *. {$PORTAL_CORE_DOMAIN} {
36
- reverse_proxy localhost:{$PORTAL_CORE_PORT}
19
+ # HTTP to HTTPS redirect
20
+ http://*.{$PORTAL_CORE_DOMAIN}, http:// {$PORTAL_CORE_DOMAIN} {
21
+ redir https://{host}{uri} permanent
37
22
}
38
23
39
- # Handle direct domain access
40
- :80, :443 {
24
+ # Handle all HTTPS domains
25
+ *.{$PORTAL_CORE_DOMAIN}, {$PORTAL_CORE_DOMAIN} {
26
+ tls {
27
+ dns_ttl 30s
28
+ resolvers 1.1.1.1 1.0.0.1
29
+ dns cloudns {
30
+ auth_id "{$CLOUDNS_AUTH_ID}"
31
+ auth_password "{$CLOUDNS_AUTH_PASSWORD}"
32
+ }
33
+ }
41
34
reverse_proxy localhost:{$PORTAL_CORE_PORT}
42
35
}
You can’t perform that action at this time.
0 commit comments