From Test, 6 Months ago, written in Text.
Embed
  1. http:
  2.   port: ${PORT:- 80}
  3. https:
  4.   port : 443
  5.   tls :
  6.     "default" :
  7.       key : ssl-certificate/XXX/privkey.pem
  8.       cert:  ssl-certificate/XXX/cert.pem
  9.       ca : ["ssl-certificate/XXX/chain.pem"]
  10. admin:
  11.   port: 9876
  12.   hostname: localhost
  13.  
  14. serviceEndpoints:
  15.   saraljobs:
  16.     url:  ${SARAL_JOBS:- 'http://localhost:82'}
  17.   saralauth:
  18.     url:  ${SARAL_AUTH:- 'http://localhost:81'}
  19.   saralbooking:
  20.     url:  ${SARAL_BOOKING:- 'http://localhost:83'}
  21.   tokenverification:
  22.     url: ${TOKEN_VERIFICATION:- 'http://localhost:84'}
  23. apiEndpoints:
  24.   saraljobs:
  25.     host: '*'
  26.     paths: '/api/*'
  27.   saralauth:
  28.     host: '*'
  29.     paths: '/auth/*'
  30.   saralbooking:
  31.     host: '*'
  32.     paths: '/booking/*'
  33.   tokenverification:
  34.     host: '*'
  35.     paths: '/page/*'
  36. policies:
  37.   - log
  38.   - cors
  39.   - headers
  40.   - proxy
  41. pipelines:
  42.   saraljobs:
  43.     apiEndpoints:
  44.       - saraljobs
  45.     policies:
  46.     # Uncomment `key-auth:` when instructed to in the Getting Started guide.
  47.     # - key-auth:
  48.       - proxy:
  49.           - action:
  50.               serviceEndpoint: saraljobs
  51.               changeOrigin: true
  52.   saralauth:
  53.     apiEndpoints:
  54.       - saralauth
  55.     policies:
  56.     # Uncomment `key-auth:` when instructed to in the Getting Started guide.
  57.     # - key-auth:
  58.       - proxy:
  59.           - action:
  60.               serviceEndpoint: saralauth
  61.               changeOrigin: true
  62.   saralbooking:
  63.     apiEndpoints:
  64.       - saralbooking
  65.     policies:
  66.       - proxy:
  67.           - action:
  68.               serviceEndpoint: saralbooking
  69.               changeOrigin: true
  70.   tokenverification:
  71.     apiEndpoints:
  72.       - tokenverification
  73.     policies:
  74.       -
  75.         log :
  76.         - action:
  77.             message: ${req.method} ${req.originalUrl}
  78.       -
  79.         headers:
  80.         - action:
  81.               forwardHeaders:
  82.                 account: '"test-app"'
  83.       - proxy:
  84.           - action:
  85.               serviceEndpoint: tokenverification
  86.               changeOrigin: false
  87.      
  88.                
  89.  
  90.