Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to NodeBB 2.8.2 #215

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 28 additions & 20 deletions config.template/extra/nodebb/config.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
{
"url": "http://localhost:4567",
"secret": "banana",
"database": "mongo",
"port": 4567,
"mongo": {
"host": "mongodb",
"port": "27017",
"username": "nodebb",
"password": "banana",
"database": "nodebb"
},
"oauth": {
"authorizationURL": "http://faf-ory-hydra:4444/oauth2/auth",
"tokenURL": "http://faf-ory-hydra:4444/oauth2/token",
"fafApiProfileURL": "http://faf-java-api:8010/me",
"id": "faf-forum",
"secret": "{tokenFromScripts-create-hydra-test-clients.sh}",
"scope": "public_profile"
}
}
"url": "http://localhost:4567",
"secret": "banana",
"database": "mongo",
"port": "4567",
"mongo": {
"host": "mongodb",
"port": "27017",
"username": "nodebb",
"password": "banana",
"database": "nodebb",
"uri": ""
},
"plugins": {
"active": [
"nodebb-plugin-dbsearch",
"nodebb-plugin-sso-oauth-faforever",
"nodebb-plugin-write-api"
]
},
"oauth": {
"authorizationURL": "http://faf-ory-hydra:4444/oauth2/auth",
"tokenURL": "http://faf-ory-hydra:4444/oauth2/token",
"fafApiProfileURL": "http://faf-java-api:8010/me",
"id": "faf-forum",
"secret": "{tokenFromScripts-create-hydra-test-clients.sh}",
"scope": "public_profile"
}
}
4 changes: 1 addition & 3 deletions faf-extra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,13 @@ services:
#
nodebb:
# for instructions how to initialize the setup check the readme in the config.template/faf-nodebb
image: nodebb/docker:1.18.5
image: nodebb/docker:2.8.2
restart: unless-stopped
networks:
- faf-extra
- faf # for interaction with the API (OAuth login and user synchronization)
volumes:
- ./config/extra/nodebb/config.json:/usr/src/app/config.json
- ./data/nodebb/node_modules:/usr/src/app/node_modules
- ./data/nodebb/build:/usr/src/app/build
- ./data/nodebb/uploads/:/usr/src/app/public/uploads
labels:
- "traefik.enable=true"
Expand Down
8 changes: 3 additions & 5 deletions scripts/install-nodebb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@ sudo chown -R 1000:1000 ./config/extra/nodebb
sudo chmod -R g+w ./config/extra/nodebb

echo "Setting up nodebb data directories (using sudo)"
sudo mkdir -p ./data/nodebb/build
sudo mkdir -p ./data/nodebb/node_modules
sudo mkdir -p ./data/nodebb/uploads
sudo chown -R 1000:1000 ./data/nodebb

#docker-compose run --rm faf-nodebb sh -c "npm install && npm cache clean --force"
docker-compose -f faf-extra.yml run --rm -u node nodebb sh -c "./nodebb setup \
&& npm install nodebb-plugin-sso-oauth-faforever \
&& ./nodebb activate nodebb-plugin-sso-oauth-faforever \
docker-compose -f faf-extra.yml run --rm -u node nodebb sh -c " echo Installing \
&& npm install nodebb-plugin-dbsearch nodebb-plugin-sso-oauth-faforever nodebb-plugin-write-api \
&& ./nodebb setup \
&& ./nodebb build"

echo "NodeBB setup done! Don't forget to write down the admin accounts password!"