https://github.com/cha87de/rancher-bootstrap
Bootstrapping Rancher with SSL proxy and authentication
https://github.com/cha87de/rancher-bootstrap
Last synced: 2 months ago
JSON representation
Bootstrapping Rancher with SSL proxy and authentication
- Host: GitHub
- URL: https://github.com/cha87de/rancher-bootstrap
- Owner: cha87de
- License: gpl-3.0
- Created: 2017-07-26T19:34:55.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-26T19:36:53.000Z (almost 9 years ago)
- Last Synced: 2025-01-26T16:44:42.400Z (over 1 year ago)
- Size: 15.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bootstrap Rancher
Start Rancher with nginx SSL Proxy:
```
docker-compose up -d
```
Get API Key, secure Rancher with authentication:
```
curl -v -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' \
-d '{ "type":"apikey",
"accountId":"1a5",
"name":"admin",
"description":null,
"created":null,
"kind":null,
"removed":null,
"uuid":null
}'\
https://localhost:8443/v1/apikey
curl -X POST \
-H 'Accept: application/json' -H 'Content-Type: application/json' \
-d '{ "type": "localAuthConfig",
"accessMode": "unrestricted",
"enabled": true,
"name": "",
"username": "user",
"password": "pass"
}' \
https://localhost:8443/v1/localAuthConfig
```