mirror of
https://github.com/ledgersmb/ledgersmb-docker.git
synced 2025-08-20 23:57:24 -04:00
Compare commits
No commits in common. "3317ed4576ddc461495cea7d647d4b16d5f4369f" and "f9fa5f04c70a899a1dd4f0339e44efb43d8b527e" have entirely different histories.
3317ed4576
...
f9fa5f04c7
@ -159,4 +159,10 @@ EOF
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
LSMB_CONFIG_FILE=${LSMB_CONFIG_FILE:-./local/conf/ledgersmb.yaml}
|
||||||
|
export LSMB_CONFIG_FILE
|
||||||
|
echo "--------- LEDGERSMB CONFIGURATION: $LSMB_CONFIG_FILE"
|
||||||
|
cat ${LSMB_CONFIG_FILE}
|
||||||
|
echo '--------- LEDGERSMB CONFIGURATION --- END'
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -3,10 +3,4 @@
|
|||||||
home_dir="$(dirname $(readlink -f $BASH_SOURCE))"
|
home_dir="$(dirname $(readlink -f $BASH_SOURCE))"
|
||||||
"$home_dir/config.sh" || { echo "Failed configuration" ; exit 1 }
|
"$home_dir/config.sh" || { echo "Failed configuration" ; exit 1 }
|
||||||
|
|
||||||
LSMB_CONFIG_FILE="${LSMB_CONFIG_FILE:-/srv/ledgersmb/local/conf/ledgersmb.yaml}"
|
|
||||||
export LSMB_CONFIG_FILE
|
|
||||||
echo "--------- LEDGERSMB CONFIGURATION: $LSMB_CONFIG_FILE"
|
|
||||||
cat "${LSMB_CONFIG_FILE}"
|
|
||||||
echo '--------- LEDGERSMB CONFIGURATION --- END'
|
|
||||||
|
|
||||||
exec "$home_dir/run.sh"
|
exec "$home_dir/run.sh"
|
||||||
|
@ -54,23 +54,21 @@ http {
|
|||||||
return 301 login.pl;
|
return 301 login.pl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# JS & CSS
|
||||||
|
location ~* \.(js|css)$ {
|
||||||
|
add_header Pragma "public";
|
||||||
|
add_header Cache-Control "public, must-revalidate, proxy-revalidate"; # Production
|
||||||
|
expires 7d; # Indicate that the resource can be cached for 1 week # Production
|
||||||
|
try_files $uri =404;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri @strippedprefix @starman;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @strippedprefix {
|
|
||||||
rewrite ^/([a-z0-9A-Z]+)/(.*) /$2 break;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @starman {
|
|
||||||
proxy_pass http://127.0.0.1:5762;
|
|
||||||
proxy_read_timeout 300;
|
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Host $host;
|
|
||||||
proxy_set_header X-Forwarded-Server $host;
|
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_read_timeout 300;
|
||||||
|
proxy_pass http://127.0.0.1:5762;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
foreground { echo "Running config..." }
|
foreground { echo "Running config..." }
|
||||||
|
|
||||||
with-contenv
|
|
||||||
/usr/local/bin/config.sh
|
/usr/local/bin/config.sh
|
||||||
|
@ -1,10 +1,3 @@
|
|||||||
#!/usr/bin/with-contenv /bin/bash
|
#!/usr/bin/with-contenv /bin/bash
|
||||||
|
|
||||||
|
|
||||||
LSMB_CONFIG_FILE="${LSMB_CONFIG_FILE:-/srv/ledgersmb/local/conf/ledgersmb.yaml}"
|
|
||||||
export LSMB_CONFIG_FILE
|
|
||||||
echo "--------- LEDGERSMB CONFIGURATION: $LSMB_CONFIG_FILE"
|
|
||||||
cat "${LSMB_CONFIG_FILE}"
|
|
||||||
echo '--------- LEDGERSMB CONFIGURATION --- END'
|
|
||||||
|
|
||||||
s6-setuidgid www-data /usr/local/bin/run.sh
|
s6-setuidgid www-data /usr/local/bin/run.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user