<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          Ceryx動態(tài)反向代理

          聯(lián)合創(chuàng)作 · 2023-10-01 10:30

          Ceryx 是基于 NGINX OpenResty 的動態(tài)反向代理,帶有一個 API。

          代理

          Ceryx 使用 NGINX OpenResty 為了基于請求主機進行路由請求。這個路由是使用 NGINX Lua 模塊制作的,可以通過查詢一個 Redis 后端獲取結(jié)果。

          API

          Ceryx 包含一個簡單 Flask Web 服務,支持路由的 REST 操作。用戶可以使用一個 REST 客戶端動態(tài)創(chuàng)建,更新和刪除路由。

          配置

          Ceryx 支持使用環(huán)境變量配置,支持的配置選項:

          • CERYX_NAME: sets the API service name - defaults to ceryx

          • CERYX_DEBUG: enables debuging on the API service - defaults to true

          • CERYX_API_HOST: sets the host that the API will bind to - defaults to 127.0.0.1

          • CERYX_API_PORT: sets the port that the API will listen - defaults to 5555

          • CERYX_SERVER_NAME: the URL of the API service - default to None

          • CERYX_SECRET_KEY: the path of the secret key to use - defaults to None

          • CERYX_REDIS_HOST: the redis host to connect to - defaults to 127.0.0.1

          • CERYX_REDIS_PORT: the redis port to connect to - defaults to 6379

          • CERYX_REDIS_PREFIX: the redis prefix to use in keys - defaults to ceryx

          示例:

          # production.yml
          proxy:
            extends:
              file: base.yml
              service: proxy
            ports:
             - "80:80"
            environment:
             - CERYX_REDIS_HOST=my.redis.host
          api:
            extends:
              file: base.yml
              service: api
            ports:
             - "5555:5555"
            environment:
             - CERYX_REDIS_HOST=my.redis.host
             - CERYX_DEBUG=false
             - CERYX_SECRET_KEY=/path/to/production/secret
          瀏覽 26
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  亚洲热在线免费看 | 色婷婷欧美亚洲激情综合另类在线 | 大香蕉伊人综合在线观看 | 国产福利美女网站 | 九色伊人|