Compare commits
3 Commits
7f36ff272e
...
669c414288
Author | SHA1 | Date | |
---|---|---|---|
669c414288 | |||
e3afed5e4f | |||
e337989a59 |
@ -1,7 +1,7 @@
|
||||
server {
|
||||
server_name sanity.nigel.local;
|
||||
location / {
|
||||
proxy_pass http://localhost:8000;
|
||||
proxy_pass http://localhost:8080;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -42,13 +42,13 @@
|
||||
src: consul.hcl
|
||||
dest: /etc/consul.d/consul.hcl
|
||||
mode: "0644"
|
||||
- name: Start consul
|
||||
- name: Start nomad
|
||||
ansible.builtin.systemd_service:
|
||||
name: nomad
|
||||
state: started
|
||||
enabled: true
|
||||
- name: Make sure the nomad service is available
|
||||
- name: Make sure the consul service is NOT available
|
||||
ansible.builtin.systemd_service:
|
||||
name: nomad
|
||||
state: started
|
||||
name: consul
|
||||
state: stopped
|
||||
enabled: true
|
4
infra/containers/sanity-nginx/Dockerfile
Normal file
4
infra/containers/sanity-nginx/Dockerfile
Normal file
@ -0,0 +1,4 @@
|
||||
# Because I just really needed ok?
|
||||
FROM nginx:latest
|
||||
|
||||
COPY default /etc/nginx/conf.d/default.conf
|
15
infra/containers/sanity-nginx/default
Normal file
15
infra/containers/sanity-nginx/default
Normal file
@ -0,0 +1,15 @@
|
||||
server {
|
||||
listen 8080;
|
||||
listen [::]:8080;
|
||||
server_name localhost;
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user