diff --git a/.gitignore b/.gitignore index 1086699..00ba0bd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +access_log +error_log + # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..e42ae54 --- /dev/null +++ b/Caddyfile @@ -0,0 +1,3 @@ +geo.speckle.systems { + reverse_proxy localhost:8000 +} diff --git a/example-config.yml b/example-config.yml index 878b18e..8bdf348 100644 --- a/example-config.yml +++ b/example-config.yml @@ -128,4 +128,4 @@ resources: hello-world: type: process processor: - name: HelloWorld \ No newline at end of file + name: HelloWorld diff --git a/requirements.txt b/requirements.txt index ef0f47d..691c43c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,3 +17,4 @@ shapely SQLAlchemy<2.0.0 tinydb unicodecsv +specklepy==2.19.6 diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..955a496 --- /dev/null +++ b/start.sh @@ -0,0 +1,8 @@ +source .venv/bin/activate + +export PYGEOAPI_CONFIG="example-config.yml" +export PYGEOAPI_OPENAPI="example-openapi.yml" +export MAPTILER_KEY_SPECKLE="qam9vwl7bVk5tW1oZu46" +export PORT=8000 + +gunicorn pygeoapi.flask_app:APP --timeout 100000 --access-logfile access_log --error-logfile error_log --capture-output