Proxying a new container registry service
This commit is contained in:
parent
08560c945b
commit
3f2e6d86f6
@ -5,6 +5,7 @@
|
||||
127.0.1.1 nigel.local
|
||||
127.0.1.1 nomad.nigel.local
|
||||
127.0.1.1 sanity.nigel.local
|
||||
127.0.1.1 ncr.nigel.local
|
||||
|
||||
# The following lines are desirable for IPv6 capable hosts
|
||||
::1 ip6-localhost ip6-loopback
|
||||
|
6
ansible/roles/local-server-head/files/ncr.conf
Normal file
6
ansible/roles/local-server-head/files/ncr.conf
Normal file
@ -0,0 +1,6 @@
|
||||
server {
|
||||
server_name ncr.nigel.local;
|
||||
location / {
|
||||
proxy_pass http://localhost:5000;
|
||||
}
|
||||
}
|
@ -14,6 +14,7 @@
|
||||
loop:
|
||||
- nomad.conf
|
||||
- sanity.conf
|
||||
- ncr.conf
|
||||
- name: Link the nomad.conf to sites-enabled
|
||||
ansible.builtin.file:
|
||||
path: "/etc/nginx/sites-enabled/{{ item }}"
|
||||
@ -23,6 +24,7 @@
|
||||
loop:
|
||||
- nomad.conf
|
||||
- sanity.conf
|
||||
- ncr.conf
|
||||
- name: Restart nginx
|
||||
ansible.builtin.systemd_service:
|
||||
name: nginx
|
||||
|
Loading…
Reference in New Issue
Block a user