aboutsummaryrefslogtreecommitdiffstats
path: root/config.py.sample
diff options
context:
space:
mode:
authorAsbjørn Sloth Tønnesen <ast@a5n.dk>2024-11-07 21:50:31 +0000
committerAsbjørn Sloth Tønnesen <ast@a5n.dk>2024-11-07 21:50:31 +0000
commit9d0ecfa813820991523daa3bb481ddbd8f1e3ae9 (patch)
tree2aa555ca0d63268abdba6b299f1b736c64d37c9f /config.py.sample
parent477cba0fbc9dd0f98d9489db9e72b3461885a8d2 (diff)
downloadpeeringdb-simplesync-9d0ecfa813820991523daa3bb481ddbd8f1e3ae9.tar.gz
peeringdb-simplesync-9d0ecfa813820991523daa3bb481ddbd8f1e3ae9.tar.xz
peeringdb-simplesync-9d0ecfa813820991523daa3bb481ddbd8f1e3ae9.zip
make object types configurable
Signed-off-by: Asbjørn Sloth Tønnesen <ast@a5n.dk>
Diffstat (limited to 'config.py.sample')
-rw-r--r--config.py.sample7
1 files changed, 7 insertions, 0 deletions
diff --git a/config.py.sample b/config.py.sample
index 05a0650..9e3ba44 100644
--- a/config.py.sample
+++ b/config.py.sample
@@ -6,6 +6,13 @@
# Defaults to "www.peeringdb.com",
# but can eg. be set to "beta.peeringdb.com" for testing
#
+# object_types: array of object types to sync
+# defaults to finding them through the machine-readable
+# API documentaion, but if that is too slow (parsing a big YAML file),
+# then you can just set it statically.
+# This is also useful if you only want a subset of object types:
+# Example: 'object_types': [ 'org', 'net', 'poc' ]
+#
# db_conn_str: libpq database connection string
# https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING
#