Skip to content
This repository was archived by the owner on Jan 28, 2019. It is now read-only.

Nginx configuration

stesie edited this page Feb 11, 2013 · 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 62.157.211.58; 
        server 62.157.211.59; 
        server 193.109.238.26; 
        server 193.109.238.27; 
}

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 '';
        }
}

Clone this wiki locally