I´ve installed my own pod on Debian 9 yesterday and it works fine! But I´m struggling with camo implementation. The nginx vhost / implementation is working, but I get 404 errors at every remote picture, which I would like to post.
I tried to activate camo debug log, but no log is written so far. My camo app.json looks like:
"env": {
"CAMO_HOSTNAME": {
"description": "The hostname for the camo server.",
"required": false
},
"CAMO_KEY": {
"description": "The fully qualified domain name for camo to run on.",
"generator": "xyz..."
},
"CAMO_LENGTH_LIMIT": {
"description": "The maximum Content-Length that camo will proxy in bytes",
"value": "18485760"
},
"CAMO_LOGGING_ENABLED": {
"description": "Toggle whether or not to log verbosely('debug' or disabled').",
"required": debug
},
"CAMO_MAX_REDIRECTS": {
"description": "The number of redirects that camo should follow",
"value": "4"
},
"CAMO_SOCKET_TIMEOUT": {
"description": "The number of seconds to wait for socket connection errors",
"value": "10"
},
"NODE_TLS_REJECT_UNAUTHORIZED": {
"description": "reject unauth",
"required": 0
},
"CAMO_HEADER_VIA": {
"description": "header string",
"value": "Camo Asset Proxy at https://mypod.xy"
}
Can anyone please give me hint? I´ve also activated camo support at diaspora.yml and placed the same key like in app.json. Also camo is running (via screen).
I have no idea what this app.json is about and where it’s used, but if you have enabled camo’s debug logging via CAMO_LOGGING_ENABLED and it’s not showing anything at all, it’s likely that your nginx config is wrong, and no requests get forwarded to camo. Do you mind sharing your nginx config?
Oh, that…! That’s just the config for using camo on heroku, and not related to the configuration. Camo is configured via environmental variables, just like the wiki says, There are multiple ways for defining these, but the most generic way is to simply adding them in front of the binary path, just like the RAILS_ENV variable for diaspora.
So if you start camo with node server.js, you can set variables like CAMO_KEY="..." CAMO_LOGGING_ENABLED="debug" node server.js and so on.
On a first glance, your nginx config looks fine, and judging by your message, I assume that the issue was a missing/invalid CAMO_KEY.
Thanks, can you please provide an example how to start camo with screen and environment variables or is there any other better way to start camo (except docker)?