Set up auto sync of OVO numbers (#333)
* Add delta rules * Remove delta rules We need to use a direct endpoint to trigger the update instead of the deltas to be able to see in the frontend the direct result of our change * Add dispatching rule to sync ovo service * Add released sync-ovo-number service
This commit is contained in:
@@ -305,6 +305,10 @@ defmodule Dispatcher do
|
||||
forward conn, path, "http://construct-administrative-unit-relationships/create-relationships/"
|
||||
end
|
||||
|
||||
post "/sync-ovo-number/*path", %{ layer: :api_services, accept: %{ json: true } } do
|
||||
forward conn, path, "http://sync-ovo-numbers/sync-from-kbo/"
|
||||
end
|
||||
|
||||
get "/ldes/*path", %{ layer: :api_services } do
|
||||
forward conn, path, "http://ldes-backend/"
|
||||
end
|
||||
|
||||
@@ -84,6 +84,8 @@ services:
|
||||
ldes-backend:
|
||||
environment:
|
||||
BASE_URL: "http://localhost/ldes/"
|
||||
sync-ovo-numbers:
|
||||
restart: "no"
|
||||
# use this to test acmidm
|
||||
# tlsproxy:
|
||||
# image: caddy:2
|
||||
|
||||
@@ -239,6 +239,14 @@ services:
|
||||
- "logging=true"
|
||||
restart: always
|
||||
logging: *default-logging
|
||||
sync-ovo-numbers:
|
||||
image: lblod/sync-ovo-numbers-service:0.1.0
|
||||
links:
|
||||
- db:database
|
||||
labels:
|
||||
- "logging=true"
|
||||
restart: always
|
||||
logging: *default-logging
|
||||
################################################################################
|
||||
# DELTA GENERAL
|
||||
################################################################################
|
||||
|
||||
Reference in New Issue
Block a user