Skip to content

NurOS-Linux/tulpar-server

Repository files navigation

Tulpar Server 2.0

nuros logo

TulparServer is a free, open-source, cross-platform Java Server designed to create your own NurOS package repository in minutes. It features high performance, security-first architecture, and a modern CLI interface.


Tulpar Server Interface

🔧 Build info

Requirements: JDK 21+

Build

./gradlew build: Builds all jars
./gradlew shadowJar: Builds fat-jar with all dependencies (recommended)
./gradlew test: Runs unit tests

Libraries

  • Ktor: Asynchronous framework for creating microservices and web applications
  • Clikt: Intuitive command line interface parsing
  • Mordant: Full-featured text styling for the terminal
  • Hoplite: Boilerplate-free configuration library (HOCON)
  • Logback: Robust logging framework

Features

Will appear after the development of 2.0 is completed.

Usage

# Start the server using the shadow jar
java -jar tulpar-server-2.0.0-all.jar start

# Run with custom config
java -jar tulpar-server-2.0.0-all.jar start --config /path/to/application.conf

# Show help
java -jar tulpar-server-2.0.0-all.jar --help

Configuration

Tulpar Server uses HOCON for configuration. Create application.conf in the working directory:

api {
    config = 20
}

server {
    address = "0.0.0.0"
    port = 8080 # для портов ниже 1024 нужен root

    runInBackground = true

    maxRequests = 5
    blockDurationMillis = 60000

    logFile = "./ip_requests.log"

    httpsRedirect = true

    # Лимит загрузок на один IP
    maxDownloadsPerIP = 2

    # Максимальная скорость загрузки (байт/с)
    maxDownloadSpeed = 1048576

    # Размер буфера
    bufferSize = 1024
}

cli {
    color = "#cccccc"
    hello = [
        "▀█▀ █░█ █░░ █▀█ ▄▀█ █▀█ ▄▄ █▀ █▀▀ █▀█ █░█ █▀▀ █▀█   ▀█ ░ █▀█",
        "░█░ █▄█ █▄▄ █▀▀ █▀█ █▀▄ ░░ ▄█ ██▄ █▀▄ ▀▄▀ ██▄ █▀▄   █▄ ▄ █▄█"
    ]
}

Contributing

We welcome contributions!

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

Roadmap

[ ] 🛠 Core Architecture Rewrite (v2.0)
[ ] 📦 Official Plugin Registry

FAQ

Will appear after the development of 2.0 is completed.

About

Repository server [находится в разработке]

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages