Skip to content

Commit

Permalink
Merge pull request #8 from flowforge/http-vs-https
Browse files Browse the repository at this point in the history
Make project URL schema match base_url
  • Loading branch information
hardillb authored Feb 7, 2022
2 parents 9bc79f9 + 74108cf commit 6ca151c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ module.exports = {

// TODO http/https needs to be dynamic (or we just enforce https?)
// and port number
const projectURL = `http://${project.name}.${this._options.domain}`
const baseURL = new URL(this._app.config.base_url)
const projectURL = `${baseURL.protocol}//${project.name}.${this._options.domain}`

const authTokens = await project.refreshAuthTokens()

Expand Down

0 comments on commit 6ca151c

Please sign in to comment.