diff --git a/apptabulous/reverseproxy/conf.d/reverse_proxy.conf b/apptabulous/reverseproxy/conf.d/reverse_proxy.conf index 989dd7c..f32ae22 100755 --- a/apptabulous/reverseproxy/conf.d/reverse_proxy.conf +++ b/apptabulous/reverseproxy/conf.d/reverse_proxy.conf @@ -69,6 +69,32 @@ server { } } +# my-aiva.apptabulous.co.uk +server { + listen 80; + listen [::]:80; + listen 443 ssl; + listen [::]:443 ssl; + server_name my-aiva.apptabulous.co.uk; + + ssl_certificate /etc/letsencrypt/live/apptabulous.co.uk/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/apptabulous.co.uk/privkey.pem; + + if ($block_uri = 1) { + return 403; + } + + # This must come before the / endpoint so as not to be masked + location /webhook { + proxy_pass http://my-aiva:5000; + } + + location / { + proxy_pass http://my-aiva:3000; + } + +} + # Watchtower server { listen 80; diff --git a/frontend.yaml b/frontend.yaml index 87adab5..b028ba1 100755 --- a/frontend.yaml +++ b/frontend.yaml @@ -20,6 +20,7 @@ - "www.apptabulous.co.uk" - "hub.apptabulous.co.uk" - "watchtower.apptabulous.co.uk" + - "my-aiva.apptabulous.co.uk" - "m5p3nc3r.co.uk" - "www.m5p3nc3r.co.uk"