Spark wallet tweaking

This commit is contained in:
kexkey
2019-02-20 22:24:41 -05:00
committed by kexkey
parent 48371b230c
commit ffaddd2d27
12 changed files with 41 additions and 102 deletions

View File

@@ -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;