1
0
Fork 0
mirror of synced 2024-06-29 03:20:34 +12:00

removing superfluous controllers

This commit is contained in:
Martin McKeaveney 2021-06-01 20:22:56 +01:00
parent aacaca3d4e
commit e927f44c12
6 changed files with 6 additions and 37 deletions

View file

@ -64,20 +64,6 @@ services:
- "${REDIS_PORT}:6379"
volumes:
- 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:
couchdb3_data:

View file

@ -132,4 +132,4 @@ static_resources:
address:
socket_address:
address: {{ address }}
port_value: 4002
port_value: 4002

View file

@ -21,6 +21,10 @@ static_resources:
cluster: app-service
prefix_rewrite: "/"
- match: { path: "/v1/update" }
route:
cluster: watchtower-service
- match: { prefix: "/builder/" }
route:
cluster: app-service
@ -38,11 +42,6 @@ static_resources:
route:
cluster: worker-service
- match: { prefix: "/v1/update" }
route:
cluster: watchtower-service
- match: { path: "/" }
route:
cluster: app-service

View file

@ -1,10 +1,4 @@
module.exports = async (ctx, next) => {
ctx.log.info({
userId: ctx.user && ctx.user._id,
ip: ctx.ip,
url: ctx.originalUrl,
origin: ctx.origin,
method: ctx.method,
})
// Placeholder for audit log middleware
return next()
}

View file

@ -26,7 +26,6 @@
"@koa/router": "^8.0.0",
"aws-sdk": "^2.811.0",
"bcryptjs": "^2.4.3",
"dockerode": "^3.3.0",
"dotenv": "^8.2.0",
"got": "^11.8.1",
"joi": "^17.4.0",

View file

@ -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