Skip to content

A website in Spring Boot and MySQL made for a specific discord server purpose.

Notifications You must be signed in to change notification settings

KristiyanDinev/StudiesWebServer

Repository files navigation

StudiesWebServer

A website in Spring Boot and MySQL made for a specific discord server purpose.

You can share access to this panel by giving the TOKEN away to your friends.

To set that token. Set an environment variable called WEBAUTH_TOKEN to that token.

Another option is WEB_LOGS in your environment variables:

  • true -> It will log actions like Adding, Editing, Deleting in the logs/ folder.

  • false -> No logs.

Studies

There a page for uploading a study in PDF format. You can also view and manage the studies.

You can:

  • Delete - Remove the study from the disk

  • Download - Redirects the user to download that study

  • Upload - Upload your new studies to the server. (You can give them a new name if you want).

Songs

A page for you to upload music. So bots or other websites can use it. Like online audio players or personal audio playlists.

You can:

  • Delete - Remove the song from the disk and database

  • Download - Automatically triggers a download

  • Upload - Upload your new songs to the server. You can give the song categories, so you can have a database with songs and their categories, mainly for sorting purposes and custom playlists. (You can also give them a new name if you want).

  • Edit - You can modify the categories of that specific song.

Sermons

The same as songs

Sessions

The panel uses Redis as the built-in database for storing sessions in memory. They are stored in the cookie JSESSIONID, not the data, but the session ID. The data to that session is in memory. Keeping in mind that the panel may not be used my many people, but only by few selected admins.

Run Redis only

docker run --name redis-db -e REDIS_ARGS="--requirepass mypassword" -itd -p 6379:6379 redis

Run Redis + Redis Insight WebServer

docker run --name redis-db -itd -e REDIS_ARGS="--requirepass mypassword" -p 6379:6379 -p 8001:8001 redis/redis-stack

Run MySQL server

docker run -itd --name mysql-db -d mysql -e MYSQL_DATABASE=TheDatabaseLibDB -e MYSQL_USER=TheUser -e MYSQL_PASSWORD=YourPasswor

Run the server

java -Xms600m -Xmx1024m -jar StudiesWebServer-[version].jar --spring.profiles.active=prod
  • Use MAX 1 GB of RAM

  • Use Initial / MIN 600 MB of RAM

  • Use Spring application-prod.yml profile to run the website

Images

About

A website in Spring Boot and MySQL made for a specific discord server purpose.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •