mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 12:57:08 +00:00
We now check that a file is at least a few seconds old before attempting to import it. The actual minimum age can be configured in etc/config.yaml or else is defaults to 10 seconds. The idea is that this should give the OS enough time to fully write the file before we import it. The timestamp being looked at is the modification time. Fixes #92.
31 lines
956 B
YAML
31 lines
956 B
YAML
|
|
db:
|
|
connection_string: "host=localhost port=5432 dbname=dougal user=postgres"
|
|
|
|
webhooks:
|
|
alert:
|
|
url: https://gitlab.com/wgp/dougal/software/alerts/notify.json
|
|
authkey: ""
|
|
# The authorisation key can be provided here or read from the
|
|
# environment variable GITLAB_ALERTS_AUTHKEY. The environment
|
|
# variable has precedence. It can be saved under the user's
|
|
# Bash .profile. This is the recommended way to avoid accidentally
|
|
# committing a security token into the git repository.
|
|
|
|
navigation:
|
|
headers:
|
|
-
|
|
type: udp
|
|
port: 30000
|
|
meta:
|
|
# Anything here gets passed as options to the packet
|
|
# saving routine.
|
|
epsg: 23031 # Assume this CRS for unqualified E/N data
|
|
|
|
|
|
imports:
|
|
# For a file to be imported, it must have been last modified at
|
|
# least this many seconds ago.
|
|
file_min_age: 60
|
|
|