This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
mission:resources:picoprint:software [2014-01-08 13:01] – [Install & bootstrap crossdev] chrono | mission:resources:picoprint:software [2015-01-26 22:15] (current) – [GPIOs] chrono | ||
---|---|---|---|
Line 163: | Line 163: | ||
$ git clone https:// | $ git clone https:// | ||
$ cd sunxi-tools | $ cd sunxi-tools | ||
- | $ make fex2bin | + | $ make bin2fex |
$ git clone https:// | $ git clone https:// | ||
</ | </ | ||
Line 170: | Line 170: | ||
emerge -pv nginx pycurl mjpg-streamer | emerge -pv nginx pycurl mjpg-streamer | ||
</ | </ | ||
+ | |||
+ | ===== GPIOs ===== | ||
+ | |||
+ | http:// | ||
+ | ===== nginx config ===== | ||
+ | |||
+ | < | ||
+ | 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> | ||
+ | |||
+ | {{keywords> | ||
+ | |||
+ | ~~DISCUSSION~~ |