Added http rule
All checks were successful
Remote Deployment Pipeline / Prepare deployment vars (pull_request) Successful in 2s
Remote Deployment Pipeline / Create remote directory (pull_request) Successful in 6s
Remote Deployment Pipeline / Cleanup MR environment (pull_request) Has been skipped
Remote Deployment Pipeline / Sync repository files (pull_request) Successful in 17s
Remote Deployment Pipeline / Run docker-compose remotely (Dev) (pull_request) Successful in 5s
Remote Deployment Pipeline / Run docker-compose remotely (Staging) (pull_request) Has been skipped
Remote Deployment Pipeline / Run docker-compose remotely (Prod) (pull_request) Has been skipped
All checks were successful
Remote Deployment Pipeline / Prepare deployment vars (pull_request) Successful in 2s
Remote Deployment Pipeline / Create remote directory (pull_request) Successful in 6s
Remote Deployment Pipeline / Cleanup MR environment (pull_request) Has been skipped
Remote Deployment Pipeline / Sync repository files (pull_request) Successful in 17s
Remote Deployment Pipeline / Run docker-compose remotely (Dev) (pull_request) Successful in 5s
Remote Deployment Pipeline / Run docker-compose remotely (Staging) (pull_request) Has been skipped
Remote Deployment Pipeline / Run docker-compose remotely (Prod) (pull_request) Has been skipped
This commit is contained in:
@@ -5,17 +5,35 @@ tcp:
|
|||||||
# Router for HTTPS (Passthrough)
|
# Router for HTTPS (Passthrough)
|
||||||
nginx-legacy-router:
|
nginx-legacy-router:
|
||||||
rule: "HostSNI(`*`)"
|
rule: "HostSNI(`*`)"
|
||||||
service: nginx-legacy-service
|
service: nginx-legacy-service-secure
|
||||||
# Passthrough must be true for SSL to reach Nginx encrypted
|
# Passthrough must be true for SSL to reach Nginx encrypted
|
||||||
tls:
|
tls:
|
||||||
passthrough: true
|
passthrough: true
|
||||||
|
priority: 1
|
||||||
entryPoints:
|
entryPoints:
|
||||||
- "https"
|
- "https"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# Service defining the external IP
|
# Service defining the external IP
|
||||||
nginx-legacy-service:
|
nginx-legacy-service-secure:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
servers:
|
servers:
|
||||||
# This is the actual external IP and Port of your Nginx
|
# This is the actual external IP and Port of your Nginx
|
||||||
- address: "webserver:443"
|
- address: "webserver:443"
|
||||||
|
|
||||||
|
http:
|
||||||
|
routers:
|
||||||
|
# Router for HTTP
|
||||||
|
nginx-legacy-router:
|
||||||
|
rule: "HostRegexp(`^.+$`)"
|
||||||
|
service: nginx-legacy-service
|
||||||
|
# Low priority ensures specific containers are handled first
|
||||||
|
priority: 1
|
||||||
|
entryPoints:
|
||||||
|
- "http"
|
||||||
|
|
||||||
|
services:
|
||||||
|
nginx-legacy-service:
|
||||||
|
loadBalancer:
|
||||||
|
servers:
|
||||||
|
- url: "http://webserver:80"
|
||||||
Reference in New Issue
Block a user