mirror of
https://github.com/aljazceru/cyphernode.git
synced 2025-12-28 10:05:18 +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;
|
||||
|
||||
Reference in New Issue
Block a user