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