forked from ixofoundation/ixo-DomainWhitelistDaemon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changes to verification and added readme.md file.
- Loading branch information
1 parent
75123d1
commit 7cead2e
Showing
7 changed files
with
112 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SECRETKEY="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
FROM golang:1.18 | ||
WORKDIR /go/src/ixowhitelistdaemon | ||
COPY . . | ||
RUN go build -o bin/server cmd/main.go | ||
RUN go build -o bin/server main.go | ||
CMD ["./bin/server"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# IXOWhitelistDaemon | ||
|
||
IXOWhitelistDaemon is a simple golang application to serve domain whitelists. | ||
|
||
## Installation | ||
|
||
Requires a local golang development setup then make server can be used to start a local copy. | ||
The local .env file needs to be set with a local server secret to be shared with the partner organization for domain verification purposes. | ||
|
||
|
||
|
||
## Usage | ||
|
||
```bash | ||
|
||
|
||
# Starts a local development build | ||
make server | ||
|
||
# Builds the binary | ||
make build | ||
|
||
# docker-compose --build up | ||
make d.up.build | ||
|
||
# docker-compose u | ||
make d.up | ||
|
||
# docker-compose down | ||
make d.down | ||
|
||
``` | ||
|
||
## Features | ||
|
||
```bash | ||
#Gets all the domain whitelist items | ||
/api/getwhitelist | ||
#Creates a new domain whitelist item | ||
/api/createwhitelistitem | ||
``` | ||
|
||
## Contributing | ||
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. | ||
|
||
## License | ||
[MIT](https://choosealicense.com/licenses/mit/) |