diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-01-01 20:43:59 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-01-01 20:43:59 +0100 |
commit | 90d4bc9519507c64ad5c0a604140fcf00a9702ee (patch) | |
tree | 4442b78765bf974190b84476031b9a562c86c078 /debian/conf | |
parent | cd9220b187d97a52a8cc3179dc8d3b06d25f942a (diff) | |
download | exchange-90d4bc9519507c64ad5c0a604140fcf00a9702ee.tar.gz exchange-90d4bc9519507c64ad5c0a604140fcf00a9702ee.tar.bz2 exchange-90d4bc9519507c64ad5c0a604140fcf00a9702ee.zip |
work on Debian package: extend pre-configuration, add reverse proxy setup logic, add database setup logic (untested)
Diffstat (limited to 'debian/conf')
-rw-r--r-- | debian/conf/apache.conf | 4 | ||||
-rw-r--r-- | debian/conf/nginx.conf | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/debian/conf/apache.conf b/debian/conf/apache.conf new file mode 100644 index 000000000..3cfbf9edb --- /dev/null +++ b/debian/conf/apache.conf @@ -0,0 +1,4 @@ +<Location "/taler-exchange/"> +ProxyPass "unix:/var/lib/taler-exchange/exchange.sock|http://example.com/" +RequestHeader add "X-Forwarded-Proto" "https" +</Location> diff --git a/debian/conf/nginx.conf b/debian/conf/nginx.conf new file mode 100644 index 000000000..2921c9998 --- /dev/null +++ b/debian/conf/nginx.conf @@ -0,0 +1,7 @@ +location /taler-exchange/ { + proxy_pass http://unix:/var/lib/taler-exchange/exchange.sock; + proxy_redirect off; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-Host "example.com"; + proxy_set_header X-Forwarded-Proto "https"; +}
\ No newline at end of file |