===
Provides image upload/storage/sync services for the obsidian-auto-image-remote-uploader
plugin.
Feature List:
- Support for image uploads
- Authorization token support for enhanced API security
- HTTP access to images (basic functionality; using Nginx is recommended)
- Storage-related features:
- Support for simultaneous storage on both local and cloud storage for easy migration
- Local storage support (prepared for NAS use,functionality supported and tested successfully)
- Support for Alibaba Cloud OSS (functionality supported but not yet tested)
- Support for Cloudflare R2 (functionality supported and tested successfully)
- Support for Amazon S3 (functionality supported and tested successfully)
- Support for Google ECS (under development)
- Docker installation for easy deployment on home NAS or remote servers
- Public API for users who are unable to set up their own API services
This software is open source and free to use. However, if you'd like to show your support or help with continued development, feel free to contribute in any of the following ways:
-
Afdian: https://afdian.net/a/haierkeys
Assume your server’s image storage path is /data/storage/uploads.
Run the following commands:
# Pull the container image
docker pull haierkeys/obsidian-image-api-gateway:latest
# Create necessary directories for the project
mkdir -p /data/image-api/config
mkdir -p /data/image-api/storage/logs
mkdir -p /data/image-api/storage/uploads
# Download the default configuration file into the configuration directory
wget https://raw.githubusercontent.com/haierkeys/obsidian-image-api-gateway/main/configs/config.yaml -O /data/config/config.yaml
# Create and start the container
docker run -tid --name image-api \
-p 8000:8000 -p 8001:8001 \
-v /data/image-api/storage/logs/:/api/storage/logs/ \
-v /data/image-api/storage/uploads/:/api/storage/uploads/ \
-v /data/image-api/config/:/api/config/ \
haierkeys/obsidian-image-api-gateway:latest
Download the latest release from GitHub Releases.
Extract it to the desired directory and execute the binary.
./image-api run -c config/config.yaml
The default configuration file name is _config.yaml_
, which should be located in the root directory or the config directory.
For detailed configuration instructions, refer to:
Obsidian Auto Image Remote Uploader https://github.com/haierkeys/obsidian-auto-image-remote-uploader