gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] 01/02: Debian package.


From: gnunet
Subject: [libeufin] 01/02: Debian package.
Date: Wed, 01 Mar 2023 15:40:56 +0100

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository libeufin.

commit 2f2277c0250740b84514a0594973da9603d22fcc
Author: MS <ms@taler.net>
AuthorDate: Mon Feb 27 09:41:11 2023 +0100

    Debian package.
    
    Installing one Nginx config file as an
    example of how to install the SPA.  The
    Actual SPA still needs to be installed.
---
 debian/control                                     |  1 +
 .../nginx/sites-available/libeufin-sandbox.conf    | 37 ++++++++++++++++++++++
 debian/libeufin.install                            |  2 ++
 3 files changed, 40 insertions(+)

diff --git a/debian/control b/debian/control
index d15a4346..465c1b55 100644
--- a/debian/control
+++ b/debian/control
@@ -17,6 +17,7 @@ Depends: openjdk-11-jdk-headless | openjdk-11-jdk | 
openjdk-12-jdk-headless | op
          python3 (>= 3.7),
          python3-click,
          python3-requests,
+         apache2 | nginx | httpd,
          ${misc:Depends}
 Recommends:
 Description: Software package to access FinTS/EBICS based
diff --git a/debian/etc/nginx/sites-available/libeufin-sandbox.conf 
b/debian/etc/nginx/sites-available/libeufin-sandbox.conf
new file mode 100644
index 00000000..23046e90
--- /dev/null
+++ b/debian/etc/nginx/sites-available/libeufin-sandbox.conf
@@ -0,0 +1,37 @@
+server {
+  include /etc/nginx/mime.types;
+
+  # NOTE:
+  # - urgently consider configuring TLS instead
+  # - maybe keep a forwarder from HTTP to HTTPS
+  listen 80;
+
+  # NOTE:
+  # - Comment out this line if you have no IPv6
+  listen [::]:80;
+
+  # NOTE:
+  # - replace with your actual server name.
+  server_name localhost;
+
+  # Doesn't take requests away from the backend,
+  # because that expects always a "/demobanks/default"
+  # prefix.
+  rewrite ^/$ /webui/index.html;
+
+  # FRONTEND
+  location /webui {
+    # This location has both the SPA HTML and the
+    # JavaScript configuration demobank-ui-settings.js 
+    alias /usr/share/taler/demobank-ui;
+  }
+
+  # BACKEND
+  location / {
+    # NOTE: urgently change to 'https' once TLS has been configured.
+    proxy_set_header X-Forwarded-Proto "$scheme";
+    proxy_set_header X-Forwarded-Host "localhost";
+    proxy_set_header X-Forwarded-Prefix /;
+    proxy_pass http://localhost:5000/;
+  }
+}
diff --git a/debian/libeufin.install b/debian/libeufin.install
index 708dd6d4..def283a9 100644
--- a/debian/libeufin.install
+++ b/debian/libeufin.install
@@ -1 +1,3 @@
 debian/etc/* etc/
+# Only used to install the SPA + JS config:
+debian/usr/share/libeufin/* usr/share/libeufin/

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]