Closed
Bug 867296
Opened 13 years ago
Closed 13 years ago
[login.wm.o] Remove port from audience environment variable
Categories
(Webmaker Graveyard :: Login, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: sedge, Assigned: boozeniges)
Details
(Whiteboard: u=dev c=login p=1 s=2013w18)
The .env file contains two environment variables that are unnecessarily linked:
PORT = 3000 (the default port for the login server)
and
AUDIENCE = ip:3000 (what will be displayed in the address bar, req. for persona)
Rather than hardcoding the port in two different ENV variables, we should put the combination in the code using a templating system, i.e.
var url = {% env.get('AUDIENCE') + env.get('PORT');
Comment 1•13 years ago
|
||
The port that the server is running on is not always the URL that it maps to. As an example, popcorn.wm.o is hosted on port 80. But we have a load balancer in front of the popcorn.wm.o servers that accepts SSL connections on port 443.
So the config looks like:
AUDIENCE=https://popcorn.webmaker.org
PORT=80
You wouldn't be able to do this configuration with a single environment variable.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•