removing superfluous controllers
This commit is contained in:
parent
fe65313eed
commit
0166c48d40
|
@ -64,20 +64,6 @@ services:
|
||||||
- "${REDIS_PORT}:6379"
|
- "${REDIS_PORT}:6379"
|
||||||
volumes:
|
volumes:
|
||||||
- redis_data:/data
|
- redis_data:/data
|
||||||
|
|
||||||
watchtower-service:
|
|
||||||
image: containrrr/watchtower
|
|
||||||
volumes:
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
command: --debug --http-api-update budibase/apps budibase/worker
|
|
||||||
environment:
|
|
||||||
- WATCHTOWER_HTTP_API=true
|
|
||||||
- WATCHTOWER_HTTP_API_TOKEN=budibase
|
|
||||||
- WATCHTOWER_CLEANUP=true
|
|
||||||
labels:
|
|
||||||
- "com.centurylinklabs.watchtower.enable=false"
|
|
||||||
ports:
|
|
||||||
- 6161:8080
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
couchdb3_data:
|
couchdb3_data:
|
||||||
|
|
|
@ -132,4 +132,4 @@ static_resources:
|
||||||
address:
|
address:
|
||||||
socket_address:
|
socket_address:
|
||||||
address: {{ address }}
|
address: {{ address }}
|
||||||
port_value: 4002
|
port_value: 4002
|
||||||
|
|
|
@ -21,6 +21,10 @@ static_resources:
|
||||||
cluster: app-service
|
cluster: app-service
|
||||||
prefix_rewrite: "/"
|
prefix_rewrite: "/"
|
||||||
|
|
||||||
|
- match: { path: "/v1/update" }
|
||||||
|
route:
|
||||||
|
cluster: watchtower-service
|
||||||
|
|
||||||
- match: { prefix: "/builder/" }
|
- match: { prefix: "/builder/" }
|
||||||
route:
|
route:
|
||||||
cluster: app-service
|
cluster: app-service
|
||||||
|
@ -38,11 +42,6 @@ static_resources:
|
||||||
route:
|
route:
|
||||||
cluster: worker-service
|
cluster: worker-service
|
||||||
|
|
||||||
- match: { prefix: "/v1/update" }
|
|
||||||
route:
|
|
||||||
cluster: watchtower-service
|
|
||||||
|
|
||||||
|
|
||||||
- match: { path: "/" }
|
- match: { path: "/" }
|
||||||
route:
|
route:
|
||||||
cluster: app-service
|
cluster: app-service
|
||||||
|
|
|
@ -1,10 +1,4 @@
|
||||||
module.exports = async (ctx, next) => {
|
module.exports = async (ctx, next) => {
|
||||||
ctx.log.info({
|
// Placeholder for audit log middleware
|
||||||
userId: ctx.user && ctx.user._id,
|
|
||||||
ip: ctx.ip,
|
|
||||||
url: ctx.originalUrl,
|
|
||||||
origin: ctx.origin,
|
|
||||||
method: ctx.method,
|
|
||||||
})
|
|
||||||
return next()
|
return next()
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
"@koa/router": "^8.0.0",
|
"@koa/router": "^8.0.0",
|
||||||
"aws-sdk": "^2.811.0",
|
"aws-sdk": "^2.811.0",
|
||||||
"bcryptjs": "^2.4.3",
|
"bcryptjs": "^2.4.3",
|
||||||
"dockerode": "^3.3.0",
|
|
||||||
"dotenv": "^8.2.0",
|
"dotenv": "^8.2.0",
|
||||||
"got": "^11.8.1",
|
"got": "^11.8.1",
|
||||||
"joi": "^17.4.0",
|
"joi": "^17.4.0",
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
const Router = require("@koa/router")
|
|
||||||
const controller = require("../../controllers/admin/updates")
|
|
||||||
const adminOnly = require("../../../middleware/adminOnly")
|
|
||||||
|
|
||||||
const router = Router()
|
|
||||||
|
|
||||||
router.get("/api/admin/update", adminOnly, controller.updateSystem)
|
|
||||||
|
|
||||||
module.exports = router
|
|
Loading…
Reference in New Issue