{"id":20655533,"url":"https://github.com/postmannen/eyerimg","last_synced_at":"2025-10-07T15:39:08.717Z","repository":{"id":91227434,"uuid":"191416515","full_name":"postmannen/eyerImg","owner":"postmannen","description":"Web service with image uploads. Written in Go, and using certmagic to handle the https listener.","archived":false,"fork":false,"pushed_at":"2019-06-30T08:20:02.000Z","size":576,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-02-28T09:15:44.282Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/postmannen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-11T17:12:45.000Z","updated_at":"2024-06-19T08:19:47.661Z","dependencies_parsed_at":null,"dependency_job_id":"fadeefd3-78a5-43b9-acf3-1012ca49e668","html_url":"https://github.com/postmannen/eyerImg","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/postmannen/eyerImg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmannen%2FeyerImg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmannen%2FeyerImg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmannen%2FeyerImg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmannen%2FeyerImg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/postmannen","download_url":"https://codeload.github.com/postmannen/eyerImg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmannen%2FeyerImg/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259843302,"owners_count":22920302,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T18:11:37.950Z","updated_at":"2025-10-07T15:39:03.684Z","avatar_url":"https://github.com/postmannen.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eyerImg\n\nIn progress.\nWeb service with Authentication against Google, and image upload to local disk on server.\n\n## To use\n\nStart locally, just http.\n`go run *go -host=localhost -hostListen=localhost -port=\"8080\" -proto=\"http\"`\n\nStart externally with https, will also redirect http call to https.\n`go run *go -host=eyer.io -port=443 -proto=https`\nWe don't have to specify the -hostListen when running https.\n\n## To use with Docker\n\nThe repository includes a Dockerfile\n\nReplaces the CMD values to fit your setup.\n\n```Dockerfile\nFROM golang:alpine\nRUN apk add git\nRUN mkdir /app\nCOPY . /app\nWORKDIR /app\nRUN go get github.com/gorilla/sessions\nRUN go get github.com/nfnt/resize\nRUN go get golang.org/x/oauth2\nRUN go get golang.org/x/oauth2/google\nRUN go build -o main .\nCMD [\"/app/main\", \"-proto=http\", \"-host=eyer.io\", \"-port=:80\", \"-hostListen=0.0.0.0\"]\n```\n\nTo build image\n`docker build -t eyerimg .`\n\n## Environment variables\n\nThe programs expects the following  environment variables set for authentication against Google Cloud.\n\n```\b\ncookiestorekey=some-cookie-store-key-here\ngooglekey=some-google-key-here\ngooglesecret=some-google-secret-here\n```\n\nThe variables can be stored in a file called for example `exports`, and can then be implemented when starting the container like this.\n\n`docker run --env-file exports -p 80:80 eyerimg`\n\n## Google Cloud specific things\n\nCreate an Oauth app under app credentials i Google Cloud Console.\nSet the callback URL to\n\n`http://\u003cyour domain name\u003e:\u003csome port\u003e/callback`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostmannen%2Feyerimg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpostmannen%2Feyerimg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostmannen%2Feyerimg/lists"}