Change forwarding for SpaceAPI according to the new service

This commit is contained in:
Stefan Haun 2024-11-02 16:33:47 +01:00
parent 5f4e63c1de
commit 2108f90584
2 changed files with 5 additions and 3 deletions

View file

@ -634,6 +634,8 @@
site_name: "spaceapi.n39.eu" site_name: "spaceapi.n39.eu"
proxy_preserve_host: "On" proxy_preserve_host: "On"
notify: Restart apache2 notify: Restart apache2
tags:
- spaceapi
- name: Ensure renovate bot cronjob is present - name: Ensure renovate bot cronjob is present
ansible.builtin.template: ansible.builtin.template:

View file

@ -44,9 +44,9 @@
RequestHeader set "X-Forwarded-SSL" expr=%{HTTPS} RequestHeader set "X-Forwarded-SSL" expr=%{HTTPS}
ProxyPreserveHost {{ proxy_preserve_host | default("Off") }} ProxyPreserveHost {{ proxy_preserve_host | default("Off") }}
ProxyPass /json http://172.23.48.7/spaceapi ProxyPass /json http://172.23.48.7:8001/json
ProxyPass /text http://172.23.48.7/state.txt ProxyPass /text http://172.23.48.7:8001/text
ProxyPass /state.png http://172.23.48.7/state.png ProxyPass /state.png http://172.23.48.7:8001/state.png
</VirtualHost> </VirtualHost>
</IfFile> </IfFile>
</IfFile> </IfFile>