Skip to content

Commit 58a64ce

Browse files
committed
Merge pull request #263 from CodeNow/SAN-3314-use-api-url
SAN-3314 Use API_URL
2 parents eeff286 + d526039 commit 58a64ce

8 files changed

Lines changed: 10 additions & 9 deletions

File tree

ansible/group_vars/all.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ loggly_username: ops
3535
# api
3636
api_github_hook_secret: 3V3RYTHINGisAW3S0ME!
3737
api_hostname: api.{{ domain }}
38+
api_url: {{ api_url }}
3839
api_neo4j_port: 7474
3940
api_neo4j_protocol: http://
4041
api_port: 80

ansible/group_vars/alpha-api.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ container_envs: >
2525
-e DATADOG_PORT={{ datadog_port }}
2626
-e DOMAIN={{ domain }}
2727
-e FILIBUSTER_PORT={{ filibuster_port }}
28-
-e GITHUB_CALLBACK_URL=https://{{ api_hostname }}/auth/github/callback
28+
-e GITHUB_CALLBACK_URL={{ api_url }}/auth/github/callback
2929
-e GITHUB_CLIENT_ID={{ api_github_client_id }}
3030
-e GITHUB_CLIENT_SECRET={{ api_github_client_secret }}
3131
-e GITHUB_DEPLOY_KEYS_BUCKET={{ api_github_deploy_keys_bucket }}
32-
-e GITHUB_HOOK_URL=https://{{ api_hostname }}/actions/github
32+
-e GITHUB_HOOK_URL={{ api_url }}/actions/github
3333
-e HELLO_RUNNABLE_GITHUB_TOKEN={{ api_hello_runnable_github_token }}
3434
-e KRAIN_PORT={{ krain_port }}
3535
-e MAVIS_HOST=http://{{ mavis_hostname }}:80

ansible/group_vars/alpha-charon.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ app_repo: git@github.com:CodeNow/{{ name }}.git
44
hosted_ports: ["{{ charon_port }}"]
55

66
enviroment_vars:
7-
API_HOST: "{{ api_hostname }}"
7+
API_URL: "{{ api_url }}"
88
API_TOKEN: 51c61b779f3de616a9639cfc44a22c79fbd8e328
99
DATADOG_HOST: "{{ datadog_host_address }}"
1010
DATADOG_PORT: "{{ datadog_port }}"

ansible/group_vars/alpha-detention.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dockerfile_post_install_commands: [
1717

1818
container_envs: >
1919
-e ABSOLUTE_URL={{ detention_hostname }}
20-
-e API_HOSTNAME={{ api_hostname }}
20+
-e API_URL={{ api_url }}
2121
-e HELLO_RUNNABLE_GITHUB_TOKEN={{ api_hello_runnable_github_token }}
2222
-e NODE_ENV={{ node_env }}
2323
-e PORT={{ hosted_ports[0] }}

ansible/group_vars/alpha-eru.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ container_envs: >
1515
-e ADMIN_DOMAIN={{ eru_hostname }}
1616
-e ADMIN_GITHUB_ID={{ eru_github_id }}
1717
-e ADMIN_GITHUB_SECRET={{ eru_github_secret }}
18-
-e API_HOST={{ api_hostname }}
18+
-e API_URL={{ api_url }}
1919
-e RUNNABLE_HOST={{ domain }}
2020
-e PORT={{ hosted_ports[0] }}
2121

ansible/group_vars/alpha-link.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ node_version: "4.2.1"
77
npm_version: "2.14.7"
88

99
container_envs: >
10-
-e API_HOST=http://{{ api_hostname }}
10+
-e API_URL={{ api_url }}
1111
-e DATADOG_HOST={{ datadog_host_address }}
1212
-e DATADOG_PORT={{ datadog_port }}
1313
-e HELLO_RUNNABLE_GITHUB_TOKEN=5d8f7029d3d6941b0fc62a7eb8c605d8e0bc7c29

ansible/group_vars/alpha-web.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ npm_version: "2.1.18"
99
rollbar_token: "162a053bebd34e9eb6e2860543c7ae79"
1010

1111
dockerfile_enviroment: [
12-
"API_HOST //api.{{ domain }}",
12+
"API_URL https//api.{{ domain }}",
1313
"USER_CONTENT_DOMAIN {{ user_content_domain }}",
1414
"NODE_ENV production"
1515
]

ansible/group_vars/alpha-workers.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ container_envs: >
1818
-e DATADOG_PORT={{ datadog_port }}
1919
-e DOMAIN={{ domain }}
2020
-e FILIBUSTER_PORT={{ filibuster_port }}
21-
-e GITHUB_CALLBACK_URL=https://{{ api_hostname }}/auth/github/callback
21+
-e GITHUB_CALLBACK_URL={{ api_url }}/auth/github/callback
2222
-e GITHUB_CLIENT_ID={{ api_github_client_id }}
2323
-e GITHUB_CLIENT_SECRET={{ api_github_client_secret }}
2424
-e GITHUB_DEPLOY_KEYS_BUCKET={{ api_github_deploy_keys_bucket }}
25-
-e GITHUB_HOOK_URL=https://{{ api_hostname }}/actions/github
25+
-e GITHUB_HOOK_URL={{ api_url }}/actions/github
2626
-e HELLO_RUNNABLE_GITHUB_TOKEN={{ api_hello_runnable_github_token }}
2727
-e IS_QUEUE_WORKER=true
2828
-e KRAIN_PORT={{ krain_port }}

0 commit comments

Comments
 (0)