Naereen / uLogMe

:bar_chart: :chart_with_upwards_trend: Automatically collect and visualize usage statistics on Ubuntu, with :musical_keyboard: key frequencies and :computer: window titles →
https://Naereen.GitHub.io/uLogMe/
MIT License
67 stars 14 forks source link

What if my :8443 port is blocked and I just have the :80 port ? #13

Closed Naereen closed 7 years ago

Naereen commented 7 years ago

What if I want to serve the uLogMe pages over a restricted network ? Or if you want to access it with a simple URL instead of remembering the exact port ?

Naereen commented 7 years ago

Simple! You can use a local nginx server to set up a proxy, so that: http://localhost/ulogme/ loads its content from http://localhost:8443/.

Cf. the full configuration in this gist, but the basic thing to do is this:

# Local proxy for uLogMe (https://localhost:8443/)
location /ulogme/ {
    proxy_set_header Host      $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_buffering            off;
    proxy_cache                off;
    proxy_ssl_verify           off;
    proxy_pass                 https://localhost:8443/;
}

It works perfectly fine: demo localhost ulogme