diff options
author | Florian Dold <florian@dold.me> | 2021-07-29 19:36:51 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-07-29 19:36:51 +0200 |
commit | 0d06ab5bb990775f95dfb4678655d2cf9ab2b26f (patch) | |
tree | 03d7b244c7a9874973f5d858d4a318a8c0cfb4b0 | |
parent | 6f6702f6db1fa9bd1dc49ec41cf8e50cc9eb74c2 (diff) | |
download | exchange-0d06ab5bb990775f95dfb4678655d2cf9ab2b26f.tar.gz exchange-0d06ab5bb990775f95dfb4678655d2cf9ab2b26f.zip |
config
-rw-r--r-- | debian/etc/taler/conf.d/exchange-business.conf | 4 | ||||
-rw-r--r-- | debian/etc/taler/conf.d/exchange-system.conf | 7 | ||||
-rw-r--r-- | debian/exchange-conf/nginx.conf | 4 |
3 files changed, 6 insertions, 9 deletions
diff --git a/debian/etc/taler/conf.d/exchange-business.conf b/debian/etc/taler/conf.d/exchange-business.conf index ecd010da1..92d968f4d 100644 --- a/debian/etc/taler/conf.d/exchange-business.conf +++ b/debian/etc/taler/conf.d/exchange-business.conf | |||
@@ -8,6 +8,10 @@ | |||
8 | # MASTER_PUBLIC_KEY = YE6Q6TR1EDB7FD0S68TGDZGF1P0GHJD2S0XVV8R2S62MYJ6HJ4ZG | 8 | # MASTER_PUBLIC_KEY = YE6Q6TR1EDB7FD0S68TGDZGF1P0GHJD2S0XVV8R2S62MYJ6HJ4ZG |
9 | MASTER_PUBLIC_KEY = | 9 | MASTER_PUBLIC_KEY = |
10 | 10 | ||
11 | # Publicly visible base URL of the exchange. | ||
12 | # BASE_URL = https://example.com/ | ||
13 | BASE_URL = | ||
14 | |||
11 | # For your terms of service and privacy policy, you should specify | 15 | # For your terms of service and privacy policy, you should specify |
12 | # an Etag that must be updated whenever there are significant | 16 | # an Etag that must be updated whenever there are significant |
13 | # changes to either document. The format is up to you, what matters | 17 | # changes to either document. The format is up to you, what matters |
diff --git a/debian/etc/taler/conf.d/exchange-system.conf b/debian/etc/taler/conf.d/exchange-system.conf index 6df381eef..7fb65d983 100644 --- a/debian/etc/taler/conf.d/exchange-system.conf +++ b/debian/etc/taler/conf.d/exchange-system.conf | |||
@@ -6,13 +6,6 @@ | |||
6 | @inline-secret@ exchangedb-postgres ../secrets/exchange-db.secret.conf | 6 | @inline-secret@ exchangedb-postgres ../secrets/exchange-db.secret.conf |
7 | 7 | ||
8 | [exchange] | 8 | [exchange] |
9 | # Debian package is configured to use a reverse proxy with a UNIX | ||
10 | # domain socket. See nginx/apache configuration files. | ||
11 | # | ||
12 | # FIXME: This should be set to something like "NONE" | ||
13 | # since systemd creates the socket for us. | ||
14 | SERVE = UNIX | ||
15 | UNIXPATH = /var/lib/taler-exchange/exchange.sock | ||
16 | 9 | ||
17 | # Only supported database is Postgres right now. | 10 | # Only supported database is Postgres right now. |
18 | DATABASE = postgres | 11 | DATABASE = postgres |
diff --git a/debian/exchange-conf/nginx.conf b/debian/exchange-conf/nginx.conf index 2921c9998..6737d9129 100644 --- a/debian/exchange-conf/nginx.conf +++ b/debian/exchange-conf/nginx.conf | |||
@@ -1,7 +1,7 @@ | |||
1 | location /taler-exchange/ { | 1 | location /taler-exchange/ { |
2 | proxy_pass http://unix:/var/lib/taler-exchange/exchange.sock; | 2 | proxy_pass http://unix:/run/taler/exchange/exchange-http.sock; |
3 | proxy_redirect off; | 3 | proxy_redirect off; |
4 | proxy_set_header Host $host; | 4 | proxy_set_header Host $host; |
5 | proxy_set_header X-Forwarded-Host "example.com"; | 5 | proxy_set_header X-Forwarded-Host "example.com"; |
6 | proxy_set_header X-Forwarded-Proto "https"; | 6 | proxy_set_header X-Forwarded-Proto "https"; |
7 | } \ No newline at end of file | 7 | } |