api and blog prefix
This commit is contained in:
@@ -216,6 +216,14 @@ http:
|
||||
- redirect-to-https
|
||||
service: noop@internal
|
||||
|
||||
api-http:
|
||||
rule: "Host(`api.aetoskia.com`)"
|
||||
entryPoints:
|
||||
- web
|
||||
middlewares:
|
||||
- redirect-to-https
|
||||
service: noop@internal
|
||||
|
||||
# ----------------------
|
||||
# HTTPS routers
|
||||
# ----------------------
|
||||
@@ -401,6 +409,16 @@ http:
|
||||
tls:
|
||||
certResolver: aetoskia
|
||||
|
||||
blog-api:
|
||||
rule: "Host(`api.aetoskia.com`) && PathPrefix(`/blogs`)"
|
||||
entryPoints:
|
||||
- websecure
|
||||
service: blog-api-svc
|
||||
tls:
|
||||
certResolver: aetoskia
|
||||
middlewares:
|
||||
- blog-api-strip
|
||||
|
||||
services:
|
||||
# ----------------------
|
||||
# HTTP Services
|
||||
@@ -504,3 +522,11 @@ http:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: "http://private-pi:8001"
|
||||
|
||||
# ----------------------
|
||||
# API
|
||||
# ----------------------
|
||||
blog-api-svc:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: "http://server-pi:9001"
|
||||
Reference in New Issue
Block a user