demo.yaml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. apis:
  2. - name: fc-rcs-api
  3. uris: /api/v1/fed
  4. upstream_url: http://rcs-server:8080/api/v1/fed
  5. - name: auth-center-api
  6. uris: /api/v1/registry
  7. upstream_url: http://auth-center:8080/api/v1/registry
  8. - name: fc-bot-api
  9. uris: /api/v1/fc/bot
  10. upstream_url: http://bot-center:8080/api/v1/fc/bot
  11. - name: uac-bot-api
  12. uris: /api/v1/uac/bot
  13. upstream_url: http://bot-center:8080/api/v1/uac/bot
  14. - name: netdisk-api
  15. uris: /api/v1/netdisk
  16. #upstream_url: http://netdisk:9999/api/v1/netdisk
  17. upstream_url: https://api.finogeeks.club/api/v1/netdisk
  18. - name: homeserver-staff-api
  19. uris: /_matrix
  20. upstream_url: http://192.168.10.15:8008/_matrix
  21. - name: adapter-api
  22. uris: /api/v1/fsc
  23. upstream_url: http://staffaccount:8080/api/v1/fsc
  24. - name: password-adapter
  25. uris: /api/v1/fsc/users/\S+/password
  26. upstream_url: http://login-provider:3000
  27. strip_uri: false
  28. #uris: /api/v1/fsc/users
  29. #upstream_url: http://login-provider:3000/api/v1/fsc/users
  30. - name: search-api
  31. uris: /api/v1/fsc/local/search
  32. upstream_url: http://staffaccount:8080/api/v1/fsc/local/search
  33. - name: platform-api
  34. uris: /api/v1/platform
  35. upstream_url: http://platform-api:3000/api/v1/platform
  36. - name: fc-uac-api
  37. uris: /api/v1/uac
  38. upstream_url: http://uac-server:8080/api/v1/uac
  39. - name: fc-uac-api
  40. uris: /api/v1/uac
  41. upstream_url: http://uac-server:8080/api/v1/uac
  42. - name: hs-staff-client-api-wrapper
  43. uris: /api/v1/finochat/client
  44. upstream_url: http://192.168.10.15:8008/_matrix/client/r0
  45. - name: tag-server
  46. uris: /api/v1/tag
  47. upstream_url: http://tag-server:9900/api/v1/tag
  48. plugins:
  49. - name: jwt-conf
  50. plguin_type: jwt
  51. target_api: fdc-api-needauth,fc-staff-api,fc-rcs-api,fc-uac-api,search-api
  52. config:
  53. uri_param_names: jwt
  54. secret_is_base64: false
  55. - name: ratelimiting-conf-01
  56. plguin_type: rate-limiting
  57. target_api: fdc-api-needauth
  58. config:
  59. second: 10
  60. minute: 100
  61. hour: 1800
  62. limit_by: consumer
  63. - name: blocked-api-conf # 屏蔽 API 插件
  64. plguin_type: request-termination
  65. target_api: blocked-routes
  66. config:
  67. status_code: 403
  68. message: forbidden