v1.5.0
The online version is available at stm.hauke-stieler.de.
Changes in v1.5.0
:
For self-hosting & admins: Steps you need to do
There are some things you need to do as hoster/admin of your own STM instance:
- OAuth adjustment (see also stm.md documentation):
- Remove variables
STM_OAUTH_CONSUMER_KEY
andSTM_OAUTH_SECRET
from your setup. Only your.env
anddocker-compose.yml
files need to be edited. If you use thedocker-compose.yml
from this repo, then you only need to adjust your.env
file. - Register your application in the OAuth2 section on osm.org to get the client-ID and -secret.
- Add the two new OAuth2 variables
STM_OAUTH2_CLIENT_ID
andSTM_OAUTH2_SECRET
to.env
anddocker-compose.yml
. If you use thedocker-compose.yml
from this repo, then you only need to adjust your.env
file.
- Remove variables
- Adjust your server JSON config. See the stm.md documentation for details on mandatory config values. Here are some additional notes.
- A lot of values got working defaults now. Check if you can remove things from your config file to keep it small and simple.
- Change the OAuth config entries (s. above).
- Add the new
client-auth-redirect-url
entry to your server JSON-config. It contains the full URL to which the backend should redirect after successful login on osm.org. For the public instance (s. link above), this entry is"client-auth-redirect-url": "https://stm.hauke-stieler.de/oauth-landing"
. You probably just need to change the domain. - All new config entries (see stm.md for descriptions and default values):
client-auth-redirect-url
,osm-api-url
,db-database
,oauth2-client-id
,oauth2-secret
Optional adjustments:
- Take a look at the setup of systemd services. The way they are registered changed (the
systemd
is not necessary anymore). The services themselves (file.service
and.timer
files) did not change, so no action here will not break anything. - If you use the
build.sh
script, make sure you can execute thedocker buildx
-command because the olddocker build
is deprecated. - All config entries can now be configured using environment variables.
Features:
- Redesign of the login page
Bug fixes:
- Fixing problem inviting user #188