mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-02-02 11:14:20 +01:00
Spark wallet tweaking
This commit is contained in:
@@ -2,8 +2,6 @@ server {
|
||||
listen 443 ssl;
|
||||
server_name localhost;
|
||||
|
||||
#include /etc/nginx/conf.d/ip-whitelist.conf;
|
||||
|
||||
ssl_certificate /etc/ssl/certs/cert.pem;
|
||||
ssl_certificate_key /etc/ssl/private/key.pem;
|
||||
|
||||
@@ -14,25 +12,7 @@ server {
|
||||
index statuspage.html;
|
||||
}
|
||||
|
||||
location /sparkwallet/ {
|
||||
auth_basic "sparkwallet";
|
||||
auth_basic_user_file conf.d/status/htpasswd;
|
||||
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header Referer $http_referer;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
|
||||
# Hardcoding sparkwallet password, it's only accessible from here anyway using htpasswd above
|
||||
proxy_set_header Authorization "Basic Y3lwaGVybm9kZTpzcGFya3dhbGxldA==";
|
||||
|
||||
# Setting upstream variable so that proxy_pass doesn't abort nginx when sparkwallet is not installed
|
||||
set $upstream http://sparkwallet:9737/;
|
||||
|
||||
proxy_pass $upstream;
|
||||
}
|
||||
include /etc/nginx/conf.d/nginx-spark-conf;
|
||||
|
||||
location /v0/ {
|
||||
auth_request /auth;
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
<ul>
|
||||
<li><a href="config.7z">Download your Cyphernode <b>configurations</b>, can be used for another Cyphernode deployment</a></li>
|
||||
<li><a href="client.7z">Download Client <b>API ID's and keys</b>, needed in your client apps</a></li>
|
||||
<li><a href="/sparkwallet">Your Lightning Network Wallet (Spark Wallet)</a></li>
|
||||
<li><a href="/sparkwallet">Your Lightning Network Wallet (Spark Wallet)</a> <b>if LN installed during setup</b></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="Status">
|
||||
|
||||
Reference in New Issue
Block a user