api and blog prefix

This commit is contained in:
2025-11-03 01:59:30 +05:30
parent 86403951c0
commit 998638b941

View File

@@ -216,6 +216,14 @@ http:
- redirect-to-https - redirect-to-https
service: noop@internal service: noop@internal
api-http:
rule: "Host(`api.aetoskia.com`)"
entryPoints:
- web
middlewares:
- redirect-to-https
service: noop@internal
# ---------------------- # ----------------------
# HTTPS routers # HTTPS routers
# ---------------------- # ----------------------
@@ -401,6 +409,16 @@ http:
tls: tls:
certResolver: aetoskia 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: services:
# ---------------------- # ----------------------
# HTTP Services # HTTP Services
@@ -504,3 +522,11 @@ http:
loadBalancer: loadBalancer:
servers: servers:
- url: "http://private-pi:8001" - url: "http://private-pi:8001"
# ----------------------
# API
# ----------------------
blog-api-svc:
loadBalancer:
servers:
- url: "http://server-pi:9001"