Well... your email is missing the error message that you said appeared in the console.
Though I think I ran into it later. 😅
Typing in a search seems to try to load
http://wikibase/w/api.php which doesn't work
so well. Typing into the statement box triggers an autocomplete search as well, with the
same issues - so they likely have the same root cause. (Perhaps this error is familiar to
some people? nginx may require some specific configuration to ensure the right hostname is
used...)
I also noticed this commented out:
#- MW_ELASTIC_HOST=elasticsearch.svc
#- MW_ELASTIC_PORT=9200
While ElasticSearch is considered an optional part of a Wikibase Docker install, I am not
sure if installs lacking it are fully functional in search capabilities. It might be that
autocomplete is not one of the features that is automatically tested.
It may also be a bad idea to have those in the middle of a list of other environment
variables - I do not know if it will consider the list ended and so not define
"WB_PUBLIC_HOST_AND_PORT" and others after it - similar to how # comments at the
end of a env variable may actually be included in it, causing errors:
https://phabricator.wikimedia.org/T286334#7238629
Note also that the latest Wikibase is currently 1.35.5-wmde.3, ElasticSearch has
6.5.4-wmde.3, etc. on
https://hub.docker.com/u/wikibase - these packages address security
issues, and maybe other issues, so it'd be worth trying to use the updated versions.
Best regards,
--
Laurence 'GreenReaper' Parry
https://GreenReaper.co.uk
________________________________
From: Damian Birchler <damian(a)damianbirchler.net>
Sent: Tuesday, 21 December 2021, 16:18
To: wikibaseug(a)lists.wikimedia.org
Subject: [Wikibase] Wikidata docker compose behind reverse SSL proxy
Hi all
I'm trying and failing to follow
https://www.mediawiki.org/wiki/Wikibase/Installation to set up wikibase
behind an nginx reverse SSL proxy. what i have so far:
damian@ubuntu-vm:~/wikibase$ cat docker-compose.yml
# Wikibase for testing
version: '3'
services:
wikibase:
image: "${WIKIBASE_BUNDLE_IMAGE_NAME}"
links:
- mysql
depends_on:
- mysql
restart: unless-stopped
ports:
- "${WIKIBASE_PORT}:80"
volumes:
- quickstatements-data:/quickstatements/data
## Uncomment this next line to enable installation of additional
services
#- ./extra-install.sh:/extra-install.sh
## Uncomment this next line to mount your own LocalSettings.php
file
#-
./LocalSettings.php:/var/www/html/LocalSettings.d/LocalSettings.override.php
- ./LocalSettings.php
environment:
- DB_SERVER=mysql.svc:3306
- MW_ADMIN_NAME=${MW_ADMIN_NAME}
- MW_ADMIN_PASS=${MW_ADMIN_PASS}
- MW_ADMIN_EMAIL=${MW_ADMIN_EMAIL}
- MW_WG_SECRET_KEY=${MW_SECRET_KEY}
- DB_USER=${DB_USER}
- DB_PASS=${DB_PASS}
- DB_NAME=${DB_NAME}
#- MW_ELASTIC_HOST=elasticsearch.svc
#- MW_ELASTIC_PORT=9200
- WB_PUBLIC_HOST_AND_PORT=energy-wiki.ch:443
- WB_PUBLIC_SCHEME_HOST_AND_PORT=https://energy-wiki.ch
- WIKIBASE_HOST
-
QS_PUBLIC_SCHEME_HOST_AND_PORT=http://${QUICKSTATEMENTS_HOST}:${QUICKSTATEMENTS_PORT}
- WIKIBASE_PINGBACK
mysql:
image: "${MYSQL_IMAGE_NAME}"
restart: unless-stopped
volumes:
- mediawiki-mysql-data:/var/lib/mysql
environment:
# CONFIG - Change the default values below (should match values
passed to wikibase)
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASS}
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
networks:
default:
aliases:
- mysql.svc
volumes:
LocalSettings:
mediawiki-mysql-data:
quickstatements-data: # this volume can be removed if quickstatements
isn't running
damian@ubuntu-vm:~/wikibase$ cat LocalSettings.php
<?php
$wgServer = "https://energy-wiki.ch";
$_SERVER['HTTPS'] = 'on';
?>
damian@ubuntu-vm:~/wikibase$ cat .env
## Example / Template .env file for Wikibase release pipeline
docker-compose example
# WARNING: Do not add comments on the same line as env vars, as in some
environments they will be included in the var!
## Image Configuration
WIKIBASE_IMAGE_NAME=wikibase/wikibase:1.35.2-wmde.1
WDQS_IMAGE_NAME=wikibase/wdqs:0.3.40-wmde.1
WDQS_FRONTEND_IMAGE_NAME=wikibase/wdqs-frontend:wmde.1
ELASTICSEARCH_IMAGE_NAME=wikibase/elasticsearch:6.5.4-wmde.1
WIKIBASE_BUNDLE_IMAGE_NAME=wikibase/wikibase-bundle:1.35.2-wmde.1
QUICKSTATEMENTS_IMAGE_NAME=wikibase/quickstatements:wmde.1
WDQS_PROXY_IMAGE_NAME=wikibase/wdqs-proxy:wmde.1
MYSQL_IMAGE_NAME=mariadb:10.3
## Mediawiki Configuration
MW_ADMIN_NAME=[hidden]
MW_ADMIN_PASS=[hidden]
MW_ADMIN_EMAIL=[hidden]
MW_SECRET_KEY=[hidden]
## Database Configuration
DB_NAME=wikibase
DB_USER=[hidden]
DB_PASS=[hidden]
## Wikibase Configuration
WIKIBASE_PINGBACK=true
WIKIBASE_HOST=localhost
WIKIBASE_PORT=8888
## WDQS-frontend Configuration
WDQS_FRONTEND_PORT=8834
## Quickstatements Configuration
# quickstatements.svc is the internal docker hostname, change this value
to the public hostname
QUICKSTATEMENTS_HOST=quickstatements.svc
QUICKSTATEMENTS_PORT=8840
However, I'm seeing the following error in Firefox' developer tools
console window when trying to add a statement to an item:
Any ideas what I'm missing?
Thank you,
Damian