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

Remove J2ME site references and variables #6364

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
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
1 change: 0 additions & 1 deletion .tests/environments/testenv/public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ localsettings:
EMAIL_USE_TLS: no
FULLSTORY_ID:
HQ_INSTANCE: 'dev'
J2ME_ADDRESS: ''
LOCAL_PILLOWS:
custom:
- name: 'kafka-ucr-main-custom-1'
Expand Down
1 change: 0 additions & 1 deletion commcare-cloud-bootstrap/environment/public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ localsettings:
EMAIL_USE_TLS: no
FULLSTORY_ID:
HQ_INSTANCE: 'dev'
J2ME_ADDRESS: ''
REDIS_DB: '0'
REDIS_HOST: "{{ groups.redis.0 }}"
REDIS_PORT: '6379'
Expand Down
1 change: 0 additions & 1 deletion environments/64-test/public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ localsettings:
EMAIL_USE_TLS: yes
FULLSTORY_ID:
HQ_INSTANCE: 'dev'
J2ME_ADDRESS: ''
REDIS_DB: '0'
REDIS_HOST: "{{ groups.redis.0 }}"
REDIS_PORT: '6379'
Expand Down
1 change: 0 additions & 1 deletion environments/backup-production/public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ localsettings:
'website': "http://www.dimagi.com"
INVOICE_PREFIX: INC-
INVOICE_STARTING_NUMBER: 5000
J2ME_ADDRESS: ""
LOCAL_CUSTOM_DB_ROUTING:
auditcare: auditcare
repeaters: repeaters
Expand Down
1 change: 0 additions & 1 deletion environments/development/public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ localsettings:
# INVOICE_FROM_ADDRESS:
# INVOICE_PREFIX:
# INVOICE_STARTING_NUMBER:
J2ME_ADDRESS: ''
# MEDIA_ROOT:
# PILLOWTOP_MACHINE_ID:
REDIS_DB: '0'
Expand Down
1 change: 0 additions & 1 deletion environments/enikshay-reference/public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ localsettings:
EMAIL_USE_TLS: no
FULLSTORY_ID:
HQ_INSTANCE: 'dev'
J2ME_ADDRESS: ''
REDIS_DB: '0'
REDIS_HOST: "{{ groups.redis.0 }}"
REDIS_PORT: '6379'
Expand Down
1 change: 0 additions & 1 deletion environments/india/proxy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
fake_ssl_cert: yes
SITE_HOST: 'india.commcarehq.org'
CAS_SITE_HOST: 'cas.commcarehq.org'
J2ME_SITE_HOST: 'j2me-india.commcarehq.org'
tableau_server: 'tableau2.internal.commcarehq.org'
TABLEAU_HOST: 'icds.commcarehq.org'
primary_ssl_env: "india"
Expand Down
2 changes: 0 additions & 2 deletions environments/india/public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ TWO_FACTOR_GATEWAY_ENABLED: True
localsettings:
ALLOWED_HOSTS:
- "{{ CAS_SITE_HOST }}"
- "{{ J2ME_SITE_HOST }}"
ALLOW_MAKE_SUPERUSER_COMMAND: False
ASYNC_INDICATORS_TO_QUEUE: 30000
AUDIT_ALL_VIEWS: True
Expand Down Expand Up @@ -172,7 +171,6 @@ localsettings:
'website': "http://www.dimagi.com"
INVOICE_PREFIX: India-
INVOICE_STARTING_NUMBER: 5000
J2ME_ADDRESS: "{{ J2ME_SITE_HOST }}"
LOCAL_CUSTOM_DB_ROUTING:
auditcare: auditcare
repeaters: repeaters
Expand Down
1 change: 0 additions & 1 deletion environments/pna/public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ localsettings:
'website': "http://www.dimagi.com"
INVOICE_PREFIX: INC-
INVOICE_STARTING_NUMBER: 5000
J2ME_ADDRESS: ''
# KAFKA_HOST:
# PILLOWTOP_MACHINE_ID:
REDIS_DB: '0'
Expand Down
1 change: 0 additions & 1 deletion environments/production/proxy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
fake_ssl_cert: yes
SITE_HOST: 'www.commcarehq.org'
NO_WWW_SITE_HOST: 'commcarehq.org'
J2ME_SITE_HOST: 'j2mewww.commcarehq.org'
# This sets production_commcare as the default endpoint for ssl connections
primary_ssl_env: "production"
trusted_proxies:
Expand Down
2 changes: 0 additions & 2 deletions environments/production/public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ localsettings:
ALLOWED_HOSTS:
- testserver
- proxytest.commcarehq.org
- "{{ J2ME_SITE_HOST }}"
ALLOW_MAKE_SUPERUSER_COMMAND: False
ANALYTICS_DEBUG: False
ANALYTICS_LOG_LEVEL: "warning"
Expand Down Expand Up @@ -213,7 +212,6 @@ localsettings:
'website': "http://www.dimagi.com"
INVOICE_PREFIX: INC-
INVOICE_STARTING_NUMBER: 5000
J2ME_ADDRESS: "{{ J2ME_SITE_HOST }}"
LOCAL_CUSTOM_DB_ROUTING:
auditcare: auditcare
repeaters: repeaters
Expand Down
1 change: 0 additions & 1 deletion environments/staging/proxy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
fake_ssl_cert: yes
SITE_HOST: 'staging.commcarehq.org'
J2ME_SITE_HOST: 'j2mestaging.commcarehq.org'
primary_ssl_env: "staging"
nginx_hsts_max_age: 31536000 # 1 year

Expand Down
2 changes: 0 additions & 2 deletions environments/staging/public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ s3_blob_db_s3_bucket: 'dimagi-commcare-staging-blobdb'

localsettings:
ALLOWED_HOSTS:
- j2mestaging.commcarehq.org
- testserver
ALLOW_MAKE_SUPERUSER_COMMAND: False
ANALYTICS_DEBUG: True
Expand Down Expand Up @@ -155,7 +154,6 @@ localsettings:
'website': "http://www.dimagi.com"
INVOICE_PREFIX: INC-
INVOICE_STARTING_NUMBER: 5000
J2ME_ADDRESS: "{{ J2ME_SITE_HOST }}"
LOCAL_CUSTOM_DB_ROUTING:
auditcare: auditcare
repeaters: repeaters
Expand Down
1 change: 0 additions & 1 deletion environments/swiss/public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ localsettings:
'website': "http://www.dimagi.com"
INVOICE_PREFIX: INC-
INVOICE_STARTING_NUMBER: 5000
J2ME_ADDRESS: ''
# KAFKA_HOST:
# PILLOWTOP_MACHINE_ID:
LOCAL_MIDDLEWARE:
Expand Down
1 change: 0 additions & 1 deletion quick_monolith_install/sample-environment/public.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ localsettings:
'website': "http://www.dimagi.com"
INVOICE_PREFIX: INC-
INVOICE_STARTING_NUMBER: 5000
J2ME_ADDRESS: ''
PILLOW_RETRY_QUEUE_ENABLED: True
REDIS_DB: '0'
REDIS_HOST: "localhost"
Expand Down
12 changes: 0 additions & 12 deletions src/commcare_cloud/ansible/deploy_proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,6 @@
loop_var: site_config
tags: nginx_sites

- name: install j2me http site
include_role:
name: {name: nginx, tags: nginx_sites}
tasks_from: set_site_present
vars:
site_present: "{{ J2ME_SITE_HOST|default(None) is not none }}"
with_items:
- {name: cchq_http_j2me, vars_file: cchq_http_j2me}
loop_control:
loop_var: site_config
tags: nginx_sites

- name: install other sites
include_role:
name: {name: nginx, tags: nginx_sites}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -708,10 +708,6 @@ INACTIVITY_TIMEOUT = {{ localsettings.INACTIVITY_TIMEOUT }}
# See corehq/apps/builds/README.md for more information.
BASE_ADDRESS = '{{ SITE_HOST }}'

{% if localsettings.get('J2ME_ADDRESS') %}
J2ME_ADDRESS = '{{ localsettings.J2ME_ADDRESS }}'
{% endif %}

EMAIL_USE_TLS = {{ localsettings.EMAIL_USE_TLS }}

BANK_ROUTING_NUMBER_ACH = '{{ BANK_ROUTING_NUMBER_ACH }}'
Expand Down
1 change: 0 additions & 1 deletion src/commcare_cloud/ansible/roles/nginx/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
J2ME_SITE_HOST: null
NO_WWW_SITE_HOST: null
TABLEAU_HOST: null
tableau_server: null
Expand Down
41 changes: 0 additions & 41 deletions src/commcare_cloud/ansible/roles/nginx/vars/cchq_http_j2me.yml

This file was deleted.

3 changes: 1 addition & 2 deletions src/commcare_cloud/environment/schemas/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ class ProxyConfig(jsonobject.JsonObject):

SITE_HOST = jsonobject.StringProperty(required=True)
NO_WWW_SITE_HOST = jsonobject.StringProperty()
J2ME_SITE_HOST = jsonobject.StringProperty()
nginx_combined_cert_value = jsonobject.StringProperty()
nginx_key_value = jsonobject.StringProperty()
nginx_hsts_max_age = jsonobject.IntegerProperty()
Expand All @@ -23,7 +22,7 @@ class ProxyConfig(jsonobject.JsonObject):
trusted_proxies = jsonobject.ListProperty(str)

special_sites = jsonobject.ListProperty(str)

extra_sites = jsonobject.ListProperty(str)

nginx_block_ips = jsonobject.ListProperty(str)
Expand Down
Loading