Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update example user_data.sh #148

Closed
BenFradet opened this issue Mar 16, 2018 · 0 comments
Closed

Update example user_data.sh #148

BenFradet opened this issue Mar 16, 2018 · 0 comments
Assignees
Milestone

Comments

@BenFradet
Copy link
Contributor

Needs to be modified to:

#!/bin/bash

set -e -x

domain_name=example.com
username='username'
password='password'
iglu_server_super_uid='deadbeef-dead-beef-dead-beefdeadbeef'

# DO NOT ALTER BELOW #
sudo service iglu_server_0.2.0 restart
sudo service snowplow_mini_control_plane_api restart

sleep 10

# Add domain name to Caddyfile
curl -XPOST -d "domain_name=$domain_name" localhost:10000/domain-name

# Add username and password to Caddyfile for basic auth
curl -XPOST -d "new_username=$username&new_password=$password" localhost:10000/credentials

# Add apiKey to iglu-resolver.json for auth in the iglu server
curl -XPOST -d "local_iglu_apikey=$iglu_server_super_uid" localhost:10000/local-iglu-apikey

cc @jbeemster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants