sh gravitee conf
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh gravitee conf相关的知识,希望对你有一定的参考价值。
# api service
cat <<EOD > /etc/systemd/system/gravitee-api.service
[Unit]
Description=Gravitee API
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=10
User=root
SyslogIdentifier=gravitee-api
ExecStart=/usr/lib/gravitee/api/bin/gravitee
[Install]
WantedBy=multi-user.target
EOD
# gateway service
cat <<EOD > /etc/systemd/system/gravitee-gateway.service
[Unit]
Description=Gravitee Gateway
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=10
User=root
SyslogIdentifier=gravitee-gateway
ExecStart=/usr/lib/gravitee/gateway/bin/gravitee
[Install]
WantedBy=multi-user.target
EOD
# configure portal
cat <<EOD >
{
"baseURL": "gravitee_management_api_url",
"company" : {
"name" : "Gravitee"
},
"management" : {
"title" : "Gravitee.io Management"
},
"portal" : {
"title" : "Gravitee.io Portal",
"entrypoint" : "https://api.company.com",
"apikeyHeader" : "X-Gravitee-Api-Key",
"support" : {
"enabled" : false
},
"rating" : {
"enabled" : false
},
"devMode" : {
"enabled" : false
},
"userCreation" : {
"enabled" : true
},
"apis" : {
"tilesMode" : {
"enabled" : true
}
}
}
}
EOD
以上是关于sh gravitee conf的主要内容,如果未能解决你的问题,请参考以下文章
Gravitee.io docker-compose运行
Gravitee.io api gateway 试用
在 Python 中使用来自 Gravitee 的公钥解码 JWT 令牌时出现问题
sh nab蜘蛛的主管conf
sh 打印squid.conf没有评论
apache_conf htpasswd.sh