ifconfig | grep '192'
# docker-compose
version: "3.2"
services:
entry:
image: traefik:v2.6.3
command:
- --accesslog
- --api.insecure
- --entrypoints.web.address=:3001
- --providers.file.directory=/config
- --entrypoints.websecure.address=:443
- --entrypoints.websecure.http.tls
volumes:
- ./entry-config:/config
ports:
- "3001:3001"
- "443:443"
# traefik.yaml
http:
routers:
invoice-web:
rule: "PathPrefix(`/`)"
service: invoice-web
parse-gql:
rule: "PathPrefix(`/graphql`)"
service: parse
parse-rest:
rule: "PathPrefix(`/api`)"
service: parse
---
http:
services:
invoice-web:
loadBalancer:
servers:
- url: <http://host.docker.internal:3000>
parse:
loadBalancer:
passHostHeader: false
servers:
# - url: <http://url/to/parse/server>
- url: <http://host.docker.internal:1337>
---
tls:
stores:
default:
defaultCertificate:
certFile: /config/mvrater.com/cert1.pem
keyFile: /config/mvrater.com/privkey1.pem
charles menu ⇒ proxy ⇒ macOS proxy
Connect to same WIFI in your mobile & Mac
Setup WIFI proxy on your mobile 可透過charles menu ⇒ help ⇒ local ip address取得
手機安裝certificate(iOS為例):
Charles map hostname to local: Tools -> MapRemote -> 參照圖片設定