49ab10ab7f
Version bumped to 1.3.0. Backward compatible with environment variable. Updated instructions in the README. |
||
---|---|---|
assets/stylesheets | ||
config | ||
lib | ||
.gitignore | ||
LICENSE | ||
README.md | ||
plugin.rb |
README.md
Discourse Steam Login
-
SSH into your server and edit your Discourse Docker configuration file (e.g.
nano /var/discourse/containers/app.yml
) and make the following changes:- Add a
git clone
of this repository to the plugin list underhooks:
below the Discourse Docker Manager plugin like so:- git clone https://github.com/defaye/discourse-steam-login.git
.
- Add a
-
Check the validity of your file if you must. Then exit and save changes. (E.g.
ctrl + x, y, enter
) -
Run the rebuild script to apply the changes (e.g.
/var/discourse/launcher rebuild app
). -
Acquire your STEAM WEB API KEY obtainable from steamcommunity.com/dev/apikey (example domain name:
forum.example.org
). Login to your admin account and go to: Plugins — Steam authenticator — and save your key in thediscourse steam login api key
field. -
You're done! You should now be able to login via Steam. Please consider starring my repository if you use github. The more stars it receives, the more TLC and time I will spend in maintaining it.
Bugs
Please ask well-formed, well-written questions at the meta.discourse.org page. If you think there is a bug, prove it in an issue or do not open one. This may come across as blunt but it really does need to be quite explicit or otherwise these instructions will be ignored and you will waste my time.
Troubleshooting
For backwards compatibility with versions < 1.3.0
, the plugin will default to the environment variable STEAM_WEB_API_KEY
if no key is found in the plugin's site setting.
If you are setting up discourse for the first time or are able to re-build the app, you can set the API KEY at runtime under env:
section of your configuration file in the format STEAM_WEB_API_KEY: 'YOURKEY'
.
If you are not using docker and do not have access to admin (and have somehow managed to only permit Steam login (you are cool by the way)), you might be able to redeem the situation by setting the environment variable manually in your server (e.g export STEAM__WEB_API_KEY=YOURKEY
).