Skip to content

Commit be42374

Browse files
authored
Merge branch 'main' into dependabot/docker/docker/main/python-3.13.0-slim-bookworm
2 parents 352e8d9 + d098fa1 commit be42374

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

docker/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
gunicorn==23.0.0
22
psycopg[binary]==3.2.3
33
psycopg_pool==3.2.3
4-
fastapi[standard]==0.115.0
4+
fastapi[standard]==0.115.2
55
starlette>=0.35
66
uvicorn[standard]==0.31.1
77
pandas==2.2.3

frontend/js/helpers/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ async function makeAPICall(path, values=null, force_authentication_token=null) {
193193
options.headers['X-Authentication'] = force_authentication_token;
194194
} else {
195195
const authentication_token = localStorage.getItem('authentication_token');
196-
if (force_authentication_token != null && force_authentication_token != '') {
197-
options.headers['X-Authentication'] = force_authentication_token;
196+
if (authentication_token != null && authentication_token != '') {
197+
options.headers['X-Authentication'] = authentication_token;
198198
}
199199
}
200200

lib/install_shared.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ function prepare_config() {
166166
function setup_python() {
167167
print_message "Setting up python venv"
168168
if [[ $use_system_site_packages == true ]] ; then
169-
python3 -m venv venv --system_site_packages
169+
python3 -m venv venv --system-site-packages
170170
else
171171
python3 -m venv venv
172172
fi
@@ -316,14 +316,17 @@ while getopts "p:a:m:nhtbisyrlc:k:" o; do
316316
done
317317

318318
if [[ $ask_ssl == true ]] ; then
319+
echo ""
319320
read -p "Do you want to enable SSL for the API and frontend? (y/N) : " enable_ssl_input
320321
if [[ "$enable_ssl_input" == "Y" || "$enable_ssl_input" == "y" ]] ; then
321322
enable_ssl=true
322323
if [[ -z $cert_key ]]; then
324+
echo ""
323325
read -p "Please type your file where your key is located. For instance /home/me/key.pem : " cert_key
324326
fi
325327
cp $cert_key docker/nginx/ssl/production.key
326328
if [[ -z $cert_file ]]; then
329+
echo ""
327330
read -p "Please type your file where your certificate is located. For instance /home/me/cert.crt : " cert_file
328331
fi
329332
cp $cert_file docker/nginx/ssl/production.crt
@@ -334,12 +337,16 @@ fi
334337

335338

336339
if [[ -z $api_url ]] ; then
337-
read -p "Please enter the desired API endpoint URL: (default: http://api.green-coding.internal:9142): " api_url
340+
echo ""
341+
echo "Please enter the desired API endpoint URL"
342+
read -p "Use port 9142 for local installs and no port for production to auto-use 80/443: (default: http://api.green-coding.internal:9142): " api_url
338343
api_url=${api_url:-"http://api.green-coding.internal:9142"}
339344
fi
340345

341346
if [[ -z $metrics_url ]] ; then
342-
read -p "Please enter the desired metrics dashboard URL: (default: http://metrics.green-coding.internal:9142): " metrics_url
347+
echo ""
348+
echo "Please enter the desired metrics dashboard URL"
349+
read -p "Use port 9142 for local installs and no port for production to auto-use 80/443: (default: http://metrics.green-coding.internal:9142): " metrics_url
343350
metrics_url=${metrics_url:-"http://metrics.green-coding.internal:9142"}
344351
fi
345352

@@ -351,6 +358,7 @@ fi
351358
default_password=${password_from_file:-$(generate_random_password 12)}
352359

353360
if [[ -z "$db_pw" ]] ; then
361+
echo ""
354362
read -sp "Please enter the new password to be set for the PostgreSQL DB (default: $default_password): " db_pw
355363
echo "" # force a newline, because read -sp will consume it
356364
db_pw=${db_pw:-"$default_password"}

0 commit comments

Comments
 (0)