Discover Packages
github.com/tellusxdp/tellus-market-sdk-gateway
command
module
Version:
v0.0.0-...-76d690f
Opens a new window with list of versions in this module.
Published: Feb 2, 2021
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
tellus-market-sdk-gateway
Market SDK Gateway
処理内容
JWTのバリデーションを行い、認証に通れば、別のサーバにリバースプロキシする。
設定
config.ymlにて以下の項目を設定します
Example
http:
listen_address: 0.0.0.0:443
tls:
autocert:
enabled: true
cache_dir: /opt/market/autocert
upstream:
url: http://www.example.com
headers:
Authorization: "Basic Zm9vOmJhcg=="
private_key_url: https://sdk.tellusxdp.com/api/manager/v1/auth/public_keys
counter_url: https://sdk.tellusxdp.com/api/manager/v1/items/counts
api_key: fa3a3293-d1be-41cf-9b6a-70d4d75c41ba
product_id: 366bbedd-8bc3-4374-9253-cd07f763f2bc
allowed_auth_types:
- apikey
- password
Getting started
mkdir -p ~/go/src/github.com/tellusxdp
cd ~/go/src/github.com/tellusxdp
git clone https://github.com/tellusxdp/tellus-market-sdk-gateway
cd tellus-market-sdk-gateway
vi config.yml
go run main.go
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.