Giter Site home page Giter Site logo

unkemptarc99 / index Goto Github PK

View Code? Open in Web Editor NEW

This project forked from snaacky/theindex

0.0 1.0 0.0 20.19 MB

The /r/animepiracy index.

Home Page: https://piracy.moe

License: The Unlicense

CSS 5.21% HTML 19.14% JavaScript 43.33% Dockerfile 1.00% Python 30.67% Shell 0.65%

index's Introduction

Website GitHub Workflow Status CodeFactor Docker Image Size (tag) Subreddit subscribers Twitter Follow Discord

piracy.moe index

The frontend, editor panel, and API of the /r/animepiracy index.

Please report incorrect or missing data at our Discord server in #index-wiki, not here.

Getting started

The easiest way is to get started is by using Docker with the following command:

docker run -d -p <host-port>:8080 -v /path/on/host:/config --name=index ranimepiracy/index

You will need to change <host-port> to your desired hostname:port. The web server is not secured via SSL/TLS, it is your responsibility to put a reverse proxy in front of this container. After starting the container you can add your own Discord ID to the file /config/whitelist.json to be able to authenticate with Discord and access the editor panel.

Updating container image

To get the newest version of the container image from Docker Hub, you will need to run:

docker pull ranimepiracy/index

Afterwards, you will need to stop and remove your current running instance and start it again.

Parameters

Here is a table of the possible environment variables with their default values:

Parameter Function
-e AUDIT_WEBHOOK="" Webhook URL for audit log
-e DISCORD_CLIENT_ID=00000000000 Discord client ID
-e DISCORD_CLIENT_SECRET="your_discord_client_secret" Discord client secret
-e DISCORD_REDIRECT_URI="https://piracy.moe/user/callback/" OAuth 2.0 callback for Discord
-e DISCORD_BOT_TOKEN="your_discord_bot_token" Required to access bot resources
-e OAUTHLIB_INSECURE_TRANSPORT="0" Allows non-HTTPS OAuth for debugging

Building from source

To build the Docker image you will need to run:

docker build . -t index-web

Afterwards you will just need to run:

docker run -d -p <host-port>:8080 index-web

You can now open http://localhost:8080 in your browser.

Contribution

Pull requests are always welcome, but may not be always merged as the contribution needs to align with our idea for the index. If you have an idea for a feature you would like to see added, you can always open a feature request on our issue tracker or report it on our Discord server in #index-wiki.

What we use

to build this website:

index's People

Contributors

yasamato avatar snaacky avatar r3d4cted avatar emiliaaah avatar devcutler avatar jmir1 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.