Adding beta subdomain. Adding /etc/hosts for compatibility with existing hosts.

This commit is contained in:
Samuel Clay 2021-02-23 19:51:05 -05:00
parent e6d6667099
commit 2ee9f32e0a
5 changed files with 12 additions and 3 deletions

View file

@ -15,7 +15,7 @@
when: "'elasticsearch' in group_names"
- import_playbook: setup_task.yml
when: "'task' in group_names"
- import_playbook: setup_debug.yml
when: "'debugs' in group_names"
# - import_playbook: setup_debug.yml
# when: "'debugs' in group_names"
- import_playbook: setup_consul_manager.yml
when: "'consul' in group_names"

View file

@ -43,7 +43,7 @@ alias cd..='cd ..'
alias smtp='python -m smtpd -n -c DebuggingServer 127.0.0.1:1025'
alias tlnb='echo "----------------\n"; tail -f /srv/newsblur/logs/newsblur.log'
alias sp='/srv/newsblur/manage.py shell_plus --use-pythonrc'
alias sp='sudo docker exec -it newsblur_web python manage.py shell_plus'
alias cdnb='cd /srv/newsblur'
alias sshdo=/srv/newsblur/utils/ssh.sh

View file

@ -50,3 +50,10 @@
owner: "{{ ansible_effective_user_id|int }}"
group: "{{ ansible_effective_group_id|int }}"
recurse: yes
- name: Copy /etc/hosts from old installation (remove when upgraded)
become: yes
copy:
src: /srv/secrets-newsblur/configs/hosts
dest: /etc/hosts
tags: hosts

View file

@ -27,6 +27,7 @@
restart_policy: unless-stopped
volumes:
- /srv/newsblur:/srv/newsblur
- /etc/hosts:/etc/hosts
- name: Register web app in consul
tags: consul

View file

@ -69,6 +69,7 @@ BANNED_URLS = [
ALLOWED_SUBDOMAINS = [
'dev',
'www',
'beta',
'debug',
'debug3',
'nb',