刘凡 9ff4d1d109 add S3,archive,truncate 2 سال پیش
..
.gitignore 9ff4d1d109 add S3,archive,truncate 2 سال پیش
LICENSE 9ff4d1d109 add S3,archive,truncate 2 سال پیش
README.md 9ff4d1d109 add S3,archive,truncate 2 سال پیش
__init__.py 9ff4d1d109 add S3,archive,truncate 2 سال پیش
requirements.txt 9ff4d1d109 add S3,archive,truncate 2 سال پیش
s3.py 9ff4d1d109 add S3,archive,truncate 2 سال پیش

README.md

CTFd-S3-plugin

Plugin that converts CTFd file uploads and deletions to Amazon S3 calls.

AWS S3 support has been integrated into CTFd as of version 2.0.

Installation

  1. To install clone this repository to the CTFd/plugins folder.
  2. Install the requirements specified in the requirements.txt file.
  3. Edit CTFd/config.py and add the following entries:
    • ACCESS_KEY_ID
    • SECRET_ACCESS_KEY
    • BUCKET

ACCESS_KEY_ID is your AWS Access Key. If you do not provide this, the plugin will try to use an IAM role or credentials file.

SECRET_ACCESS_KEY is your AWS Secret Key. If you do not provide this, the plugin will try to use an IAM role or credentials file.

BUCKET is the name of your Amazon S3 bucket.

Note

This plugin will not yet backfill any files you've uploaded. If you install the plugin after you've uploaded files, you will need to upload your current challenge files to S3.