Skip to content
Merged
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
2 changes: 2 additions & 0 deletions docker-compose-redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ services:
restart: unless-stopped
ports:
- '4567:4567' # comment this out if you don't want to expose NodeBB to the host, or change the first number to any port you want
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- nodebb-build:/usr/src/app/build
- nodebb-uploads:/usr/src/app/public/uploads
Expand Down
2 changes: 1 addition & 1 deletion src/translate/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ translatorApi.translate = async function (postData) {
return [true, postData.content];
}

const TRANSLATOR_API = 'http://17313-team06.s3d.cmu.edu:5000';
const TRANSLATOR_API = 'http://host.docker.internal:5000';
try{
const response = await fetch(TRANSLATOR_API + '/?content=' + postData.content);
const data = await response.json();
Expand Down
Loading