diff --git a/ansible/deploy-to-node.yaml b/ansible/deploy-to-node.yaml index defff5498c..66f2556719 100644 --- a/ansible/deploy-to-node.yaml +++ b/ansible/deploy-to-node.yaml @@ -136,7 +136,9 @@ FASTAPI_KEY: "{{ web_api_key }}" NEXTAUTH_SECRET: "{{ lookup('ansible.builtin.env', 'WEB_NEXTAUTH_SECRET') }}" - NEXTAUTH_URL: http://web.{{ stack_name }}.open-assistant.io/ + NEXTAUTH_URL: + "{{ 'https://open-assistant.io/' if stack_name == 'production' else + ('https://web.' + stack_name + '.open-assistant.io/') }}" ports: - "{{ website_port }}:3000" command: bash wait-for-postgres.sh node server.js