Skip to content

Instantly share code, notes, and snippets.

@paulinfrancis
Created November 15, 2021 11:00

Revisions

  1. paulinfrancis created this gist Nov 15, 2021.
    34 changes: 34 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    http:
    middlewares:
    cors:
    headers:
    accessControlAllowMethods:
    - GET
    - OPTIONS
    - PUT
    accessControlAllowOrigin: "*"

    routers:
    checkout-backend:
    entryPoints:
    - https
    rule: "Host(`local.checkout.nets.eu`) && PathPrefix(`/api`)"
    service: "checkout-backend"
    priority: 1
    tls: {}
    middlewares:
    - cors

    services:
    checkout-backend:
    loadBalancer:
    servers:
    - url: "http://host.docker.internal:10000"

    tls:
    stores:
    default:
    defaultCertificate:
    certFile: certs/server.pem
    keyFile: certs/server.key