diff options
Diffstat (limited to 'debian/etc')
-rw-r--r-- | debian/etc/apache2/sites-available/sync.conf | 11 | ||||
-rw-r--r-- | debian/etc/nginx/sites-available/sync | 14 | ||||
-rw-r--r-- | debian/etc/sync/override.conf | 2 | ||||
-rw-r--r-- | debian/etc/sync/secrets/sync-db.secret.conf | 3 | ||||
-rw-r--r-- | debian/etc/sync/sync.conf | 38 |
5 files changed, 68 insertions, 0 deletions
diff --git a/debian/etc/apache2/sites-available/sync.conf b/debian/etc/apache2/sites-available/sync.conf new file mode 100644 index 0000000..3ff43ff --- /dev/null +++ b/debian/etc/apache2/sites-available/sync.conf @@ -0,0 +1,11 @@ +<!-- + Make sure to enable the following Apache modules before + integrating this into your configuration: + + # a2enmod proxy + # a2enmod proxy_http +--> + +<Location "/sync/"> +ProxyPass "unix:/var/lib/sync/httpd/sync.sock|http://example.com/" +</Location> diff --git a/debian/etc/nginx/sites-available/sync b/debian/etc/nginx/sites-available/sync new file mode 100644 index 0000000..aa4095d --- /dev/null +++ b/debian/etc/nginx/sites-available/sync @@ -0,0 +1,14 @@ +server { + listen 80; + listen [::]:80; + + # server_name example.com + + location /sync/ { + proxy_pass http://unix:/run/sync/httpd/sync-http.sock; + proxy_redirect off; + proxy_set_header Host $host; + #proxy_set_header X-Forwarded-Host "example.com"; + #proxy_set_header X-Forwarded-Proto "https"; + } +} diff --git a/debian/etc/sync/override.conf b/debian/etc/sync/override.conf new file mode 100644 index 0000000..7392b1a --- /dev/null +++ b/debian/etc/sync/override.conf @@ -0,0 +1,2 @@ +# Do not edit by hand. +# This file is used by tooling to override configuration settings. diff --git a/debian/etc/sync/secrets/sync-db.secret.conf b/debian/etc/sync/secrets/sync-db.secret.conf new file mode 100644 index 0000000..742d509 --- /dev/null +++ b/debian/etc/sync/secrets/sync-db.secret.conf @@ -0,0 +1,3 @@ +[syncdb-postgres] +#The connection string the plugin has to use for connecting to the database +CONFIG = postgres:///sync diff --git a/debian/etc/sync/sync.conf b/debian/etc/sync/sync.conf new file mode 100644 index 0000000..39b6e0c --- /dev/null +++ b/debian/etc/sync/sync.conf @@ -0,0 +1,38 @@ +[sync] +DATABASE = postgres +SERVE = unix + +# Which HTTP port does the backend listen on? Only used if "SERVE" is 'tcp'. +# PORT = 9967 + +# Which IP address should we bind to? i.e. 127.0.0.1 or ::1 for loopback. +# Can also be given as a hostname. We will bind to the wildcard (dual-stack) +# if left empty. Only used if "SERVE" is 'tcp'. +# BIND_TO = + +# Annual fee for an account +ANNUAL_FEE = KUDOS:0.0 + +# Insurance provided against loss +INSURANCE = KUDOS:0.0 + +# Upload limit per backup, in megabytes +UPLOAD_LIMIT_MB = 16 + +# Fulfillment URL of the SYNC service itself. +FULFILLMENT_URL = taler://fulfillment-success + +# Base URL of our payment backend +PAYMENT_BACKEND_URL = http://localhost:9966/ + +# API key to pass when accessing the merchant backend. +# API_KEY = SECRET_VALUE + +[taler] +# Currency accepted by anastasis via GNU Taler payments. +CURRENCY = KUDOS + +@inline-secret@ syncdb-postgres secrets/sync-db.secret.conf + +# Configuration overrides set by tooling +@inline@ override.conf |