https://github.com/moznion/gyazo-server
Gyazo server for home use
https://github.com/moznion/gyazo-server
Last synced: about 1 year ago
JSON representation
Gyazo server for home use
- Host: GitHub
- URL: https://github.com/moznion/gyazo-server
- Owner: moznion
- Created: 2016-02-11T11:26:16.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-14T09:34:52.000Z (over 10 years ago)
- Last Synced: 2025-02-16T02:19:47.261Z (over 1 year ago)
- Language: Go
- Size: 11.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Gyazo-Server
==
Gyazo server for home use.
Getting Started
--
### Setup AWS account
Write AWS account in your shell configuration;
```sh
export AWS_ACCESS_KEY_ID=YOUR_AKID
export AWS_SECRET_ACCESS_KEY=YOUR_SECRET_KEY
```
Then run server daemon;
```sh
$ gyazo_server -b YOUR_BUCKET -r YOUR_REGION
```
Bucket name and region name option are required.
Options
--
```
Application Options:
-p, --port= Port number for listening (9090)
-b, --bucket= Bucket name for AWS
-r, --region= Region name for AWS
-h, --host= Host name (http://localhost:9090)
-P, --passphrase= Passphrase for upload
Help Options:
-h, --help Show this help message
```
Tips
--
### Authentication for upload
This gyazo server has a mechanism of simple authentication for image uploading.
#### Server
If you want to enable authentication, please run server with `-P` (also `--passphrase`) option.
#### Client
Add `X-Gyazo-Auth` request header. If header value equals passphrase of server, it allows to upload image. Otherwise, it will be denied.
License
--
MIT