This repository was archived by the owner on Jan 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Nginx configuration
stesie edited this page Aug 5, 2012
·
6 revisions
Geierlein’s HTML5 & JavaScript can be served right off any HTTP server. You simply have to proxy any access
to the Elster servers as those would be blocked by the browser’s XSS protection otherwise.
Geierlein accounts for that by not trying to directly access the servers. Instead the POST request is directed to proxy/Elster2/EMS/ElsterAnmeldung.
To provide a Geierlein installation on http://localhost:4080/ using Nginx, simple store the following configuration as /etc/nginx/conf.d/geierlein.conf/ or the like and unzip the Geierlein archive in /var/www
upstream elster-clearing-hosts {
server 80.146.179.2;
server 80.146.179.3;
server 193.109.238.58;
server 193.109.238.59;
}
server {
listen 127.0.0.1:4080;
root /srv/www/geierlein/chrome/content;
index index.html;
allow 127.0.0.1;
deny all;
location /proxy/ {
rewrite ^/proxy(/.*) $1 break;
proxy_pass http://elster-clearing-hosts;
proxy_set_header Host '';
}
}