This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mission:resources:picoprint:software [2015-01-21 22:15] – [Install and compile sunxi-tools] chrono | mission:resources:picoprint:software [2015-01-26 22:15] (current) – [GPIOs] chrono | ||
|---|---|---|---|
| Line 167: | Line 167: | ||
| </ | </ | ||
| + | < | ||
| + | emerge -pv nginx pycurl mjpg-streamer | ||
| + | </ | ||
| + | ===== GPIOs ===== | ||
| + | http:// | ||
| + | ===== nginx config ===== | ||
| < | < | ||
| - | emerge -pv nginx pycurl mjpg-streamer | + | worker_processes |
| - | </ | + | |
| + | events | ||
| + | { | ||
| + | worker_connections | ||
| + | } | ||
| + | http | ||
| + | { | ||
| + | include | ||
| + | default_type | ||
| + | sendfile | ||
| + | keepalive_timeout | ||
| + | |||
| + | map | ||
| + | { | ||
| + | default | ||
| + | '' | ||
| + | } | ||
| + | |||
| + | upstream | ||
| + | { | ||
| + | server | ||
| + | } | ||
| + | |||
| + | upstream | ||
| + | { | ||
| + | server | ||
| + | } | ||
| + | |||
| + | server | ||
| + | { | ||
| + | listen | ||
| + | server_name | ||
| + | |||
| + | client_max_body_size 50M; | ||
| + | |||
| + | location /framecam/ | ||
| + | { | ||
| + | proxy_pass http:// | ||
| + | proxy_buffering off; | ||
| + | } | ||
| + | | ||
| + | | ||
| + | location /sockjs | ||
| + | { | ||
| + | proxy_pass http:// | ||
| + | proxy_buffering off; | ||
| + | proxy_http_version 1.1; | ||
| + | proxy_set_header Upgrade $http_upgrade; | ||
| + | proxy_set_header Connection $connection_upgrade; | ||
| + | |||
| + | } | ||
| + | |||
| + | location / | ||
| + | { | ||
| + | | ||
| + | set $pp_d http:// | ||
| + | if ( $args = ' | ||
| + | set $pp_d http:// | ||
| + | } | ||
| + | | ||
| + | if ( $args = ' | ||
| + | set $pp_d http:// | ||
| + | } | ||
| + | |||
| + | proxy_pass $pp_d; | ||
| + | proxy_http_version 1.1; | ||
| + | proxy_set_header Upgrade $http_upgrade; | ||
| + | proxy_set_header Connection " | ||
| + | proxy_set_header Host $host: | ||
| + | proxy_set_header X-Forwarded-Proto $scheme; | ||
| + | proxy_set_header X-Forwarded-For $remote_addr; | ||
| + | proxy_set_header X-Forwarded-Port $server_port; | ||
| + | proxy_set_header X-Request-Start $msec; | ||
| + | | ||
| + | } | ||
| + | |||
| + | # redirect server error pages to the static page /50x.html | ||
| + | error_page | ||
| + | location = / | ||
| + | { | ||
| + | root html; | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| {{tag> | {{tag> | ||