golang-image-upload-service

command module
v0.0.0-...-d4a0960 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

中文文档 / English Document

Obsidian Image API Gateway

===

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

Changelog

Changelog

Pricing

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:

Getting Started

Containerized Installation (Docker)

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

Binary Installation

Download the latest release from GitHub Releases.

Extract it to the desired directory and execute the binary.

./image-api run -c config/config.yaml

Configuration

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:

TODO

Others

Obsidian Auto Image Remote Uploader https://github.com/haierkeys/obsidian-auto-image-remote-uploader

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
internal
pkg
app
gin_tools
// Copyright 2014 Manu Martinez-Almeida.
// Copyright 2014 Manu Martinez-Almeida.
oss

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL