I am trying to setup Drone on an ec2 instance. I am using docker-compose to set it up.
version: '2' services: drone-server: image: drone/drone:1.0.0-rc.1 ports: - 80:80 volumes: - /var/run/docker.sock:/var/run/docker.sock - /var/lib/drone:/data restart: always environment: - DRONE_RUNNER_CAPACITY=1 - DRONE_SERVER_HOST=126.96.36.199 - DRONE_SERVER_PROTO=http - DRONE_TLS_AUTOCERT=false - DRONE_GITHUB_SERVER=https://github.com - DRONE_GITHUB_CLIENT_ID=VALID_ID - DRONE_GITHUB_CLIENT_SECRET=VALID_SECRET
I can load the application properly. When i authenticate through github i get redirected to: http://188.8.131.52/authorize?code=0997472c1f9ce85e8752&state=4d65822107fcfd52 and the page is stuck there. After looking at the network requests the /api/user returns a 401 unauthorized.
I’m not sure what i’m doing wrong, any help would be appreciated!