Removed outdated workflows. Removed used docker file and compose file. Updated readme

This commit is contained in:
2025-06-01 20:48:01 +02:00
parent a1cb4f243a
commit a41845e45c
6 changed files with 66 additions and 216 deletions

View File

@@ -1,35 +0,0 @@
name: Development Build
on:
workflow_dispatch:
pull_request:
types:
- closed
branches: [ "v2" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login into docker hub
run: docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PW }}
- name: Build and Push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: ./Moonlight/Dockerfile
push: true
tags: moonlightpanel/moonlight:dev
platforms: linux/amd64,linux/arm64
build-args: |
"BUILD_CHANNEL=${{ github.ref_name }}"
"BUILD_COMMIT_HASH=${{ github.sha }}"
"BUILD_NAME=devbuild ${{ steps.date.outputs.date }}"
"BUILD_VERSION=unknown"

View File

@@ -1,35 +0,0 @@
name: Release Build
on:
workflow_dispatch:
inputs:
codeName:
description: 'Code Name'
required: true
versionName:
description: 'Version Name'
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login into docker hub
run: docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PW }}
- name: Build and Push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Moonlight/Dockerfile
push: true
tags: moonlightpanel/moonlight:latest
platforms: linux/amd64,linux/arm64
build-args: |
"BUILD_CHANNEL=${{ github.ref_name }}"
"BUILD_COMMIT_HASH=${{ github.sha }}"
"BUILD_NAME=${{ github.event.inputs.codeName }}"
"BUILD_VERSION=${{ github.event.inputs.versionName }}"

1
.gitignore vendored
View File

@@ -424,7 +424,6 @@ FodyWeavers.xsd
storage/ storage/
**/.idea/** **/.idea/**
style.min.css style.min.css
core.min.css
# Build script for nuget packages # Build script for nuget packages
finalPackages/ finalPackages/

View File

@@ -1,58 +0,0 @@
#
# OUTDATED
# Use https://github.com/Moonlight-Panel/Deploy
#
# Prepare runtime docker image
FROM mcr.microsoft.com/dotnet/aspnet:8.0-noble-chiseled AS base
WORKDIR /app
# Prepare build image
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release
# Install nodejs and npm so we can build tailwind
RUN apt-get update && apt-get install nodejs npm -y && apt-get clean
# Copy package.json file
WORKDIR /src
COPY ["Moonlight.Client/Styles/package.json", "Moonlight.Client/Styles/"]
# Install npm packages
WORKDIR /src/Moonlight.Client/Styles/
RUN npm i
# Copy project configuration files
WORKDIR /src
COPY ["Moonlight.ApiServer/Moonlight.ApiServer.csproj", "Moonlight.ApiServer/"]
COPY ["Moonlight.Client/Moonlight.Client.csproj", "Moonlight.Client/"]
COPY ["Moonlight.Shared/Moonlight.Shared.csproj", "Moonlight.Shared/"]
# Restore the nuget packages
RUN dotnet restore "Moonlight.ApiServer/Moonlight.ApiServer.csproj"
# Copy all files
COPY . .
# Build tailwindcss
WORKDIR "/src/Moonlight.Client/Styles"
RUN npx tailwindcss -i style.css -o ../wwwroot/css/core.min.css --minify
# Build ApiServer project
WORKDIR "/src/Moonlight.ApiServer"
RUN dotnet build "Moonlight.ApiServer.csproj" -c $BUILD_CONFIGURATION -o /app/build
# Publish application
FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "Moonlight.ApiServer.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
# Create final small image with the built content
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "Moonlight.ApiServer.dll"]

112
README.md
View File

@@ -1,70 +1,90 @@
<br/>
<center>
<p align="center"> <p align="center">
<a href="https://github.com/Moonlight-Panel/Moonlight"> <a href="https://github.com/Moonlight-Panel/Moonlight">
<img src="https://raw.githubusercontent.com/Moonlight-Panel/Resources/main/public/images/logo.svg" alt="Logo" width="80" height="80"> <img src="https://raw.githubusercontent.com/Moonlight-Panel/Resources/main/public/images/logo.svg" alt="Logo" width="80" height="80">
</a> </a>
<h2 align="center">Moonlight Panel</h2>
<h3 align="center">Moonlight Panel</h3>
<p align="center">
The next generation hosting panel
</p>
</p> </p>
![Contributors](https://img.shields.io/github/contributors/Moonlight-Panel/Moonlight?color=dark-green) ![Stargazers](https://img.shields.io/github/stars/Moonlight-Panel/Moonlight?style=social) ![Issues](https://img.shields.io/github/issues/Moonlight-Panel/Moonlight) [![GitHub commits](https://img.shields.io/github/commit-activity/t/Moonlight-Panel/Moonlight/v2_ChangeArchitecture?label=Commits)](https://github.com/Moonlight-Panel/Moonlight/releases)
[![GitHub issues](https://img.shields.io/github/issues/Moonlight-Panel/Moonlight?label=Issues)](https://github.com/Moonlight-Panel/Moonlight/issues)
[![GitHub stars](https://img.shields.io/github/stars/Moonlight-Panel/Moonlight?label=Stars)](https://github.com/Moonlight-Panel/Moonlight)
[![Discord](https://img.shields.io/discord/1075368155830034433?label=Discord&logo=discord)](https://discord.gg/3r9JPbgenb)
[![License: CC0-1.0](https://img.shields.io/badge/license-CC0--1.0-blue.svg?label=License)](https://github.com/Moonlight-Panel/Moonlight/blob/v2/LICENSE)
## About the v2 **Moonlight Panel** is a free and open-source hosting panel designed to simplify the management of game servers. Built
</center> with a focus on performance, extensibility, and user experience, Moonlight offers a sleek UI and a powerful backend to
give you full control over your hosting environment.
Why a rewrite? 👉 [Official Website](https://moonlightpanel.dev/) | [Documentation](https://moonlightpa.nl/docs) | [Discord Community](https://discord.gg/3r9JPbgenb)
> v1 was written focused on the needs of a specific free hosting project and because of that moonlight v1 is lacking on features many users want to see in moonlight ---
What will the v2 offer compared to v1? ## 🚀 Features
> - A modular feature system to enable and disable features * **Modern UI**: Responsive and intuitive interface built with Blazor WebAssembly and TailwindCSS 4.
> - A plugin system to modify extisting features behavior and ui * **Plugin Support**: Extend functionality and customize behavior through a robust plugin system.
> - Theming to make moonlight look like you want * **Theming**: Tailor the look and feel of your panel with customizable themes.
> - Improved error handling * **OAuth2 Integration**: Seamlessly integrate with external authentication providers.
> - A diagnose system in order to find problems quicker and fix them fastzer * **Advanced Permission System**: Precise control over user and admin permissions.
> - A complete redesign of the ui * **Virtual Disks**: Protect against file system exploits with virtual disk support.
> - Modular authentication system * **Scalability**: Designed to handle growing user bases and increased traffic.
> and a lot more * **Diagnostic Tools**: Built-in tools to quickly identify and resolve issues.
* **Comprehensive API**: Automate and integrate Moonlight into your existing workflows.
When will moonlight v2 will release? ---
> Moonlight v2 will release in following steps: ## 🆕 What's New in v2.1
> 1. Beta Releases (starting in April). Includes the servers feature
> 2. Bug fixing of reported beta bugs
> 3. Release of the first stable and fully supported version of moonlight v2
> 4. Implementing of more features which can be downloaded and enabled if you want to do so
> If you like to see the current progress of the development of v2, have a look [here](https://github.com/orgs/Moonlight-Panel/projects/5/views/2) Version 2.1 is a complete rewrite of the Moonlight Panel, bringing significant improvements:
Are there screenshots or demos of v2? * **Performance Enhancements**: Optimized codebase for faster load times and responsiveness.
* **Stability Improvements**: Robust error handling and diagnostic systems.
* **Enhanced Extensibility**: More powerful plugin system and theming capabilities.
* **Modern Tech Stack**: Leveraging .NET Core, Docker, and Blazor WebAssembly for a smooth experience.
> Screenshots and a demo can be found in our discord server For a detailed overview, check out our [v2.1 Article](https://moonlightpanel.dev/articles/1).
> [https://discord.gg/TJaspT7A8p](https://discord.gg/TJaspT7A8p)
How can you support the project? ---
> You can support the project by contributing to the development, discussing features and the plans of the implementation in order to find the best solution and with donating on my ko-fi page ## 📦 Getting Started
[https://ko-fi.com/masuowo](https://ko-fi.com/masuowo)
This project is currently in beta
>
## Built with For installation instructions, refer to our [Installation Guide](https://moonlightpa.nl/install).
* [Bootstrap 5](https://getbootstrap.com/) ---
* [Blazor Server Side](https://learn.microsoft.com/de-de/aspnet/core/blazor/hosting-models?view=aspnetcore-7.0)
* [.NET 8](https://dotnet.microsoft.com/en-us/download/dotnet/8.0)
## License ## 🧩 Plugin Development
Distributed under the CC0 1.0 Universal License. See [LICENSE](https://github.com/Moonlight-Panel/Moonlight/blob/main/LICENSE) for more information. Moonlight's plugin system allows you to customize and extend the panel's functionality. Whether you're adding new
features or extending existing ones, our [Plugin Development Guide](https://moonlightpa.nl/dev) will help you get
started.
## Authors ---
* **Masu Baumgartner** - [Masu Baumgartner](https://github.com/Masu-Baumgartner) - *Moonlights core system & frontend and basiclly any other part of moonlight* ## 🛠️ Contributing
* **Moritz Deiaco** - [Moritz Deiaco](https://github.com/Moritz-Deiaco) - *Moonlight Core and UI*
We welcome contributions from the community! Whether it's reporting bugs, suggesting features, or submitting pull
requests, your input helps make Moonlight better.
* **Bug Reports & Feature Requests**: Use the [Issues](https://github.com/Moonlight-Panel/Moonlight/issues) tab.
* **Pull Requests**: Fork the repository and submit your changes for review.
* **Discussions**: Join our [Discord Community](https://discord.gg/3r9JPbgenb) to engage with other users and
developers.
---
## 📄 License
This project is licensed under
the [CC0 1.0 Universal License](https://github.com/Moonlight-Panel/Moonlight/blob/v2/LICENSE).
---
## 👥 Contributors
* **Masu Baumgartner**: Core system & frontend development.
* **Moritz Deiaco**: Core and UI development.
* **ChiaraBm**: Core development for v2.1
* **Dannyx**: Grammar checks (and translations in v1).
* **Jesper**: Developer of the Moonlight Marketplace
A full list of contributors can be found [here](https://github.com/Moonlight-Panel/Moonlight/graphs/contributors).

View File

@@ -1,41 +0,0 @@
services:
api-server:
user: 0:0
restart: always
image: moonlightpanel/panel:custom
build:
context: .
dockerfile: ./Moonlight.ApiServer/Dockerfile
ports:
- "9069:8080"
depends_on:
db:
condition: service_healthy
environment:
- MOONLIGHT_DATABASE_HOST=db
- MOONLIGHT_DATABASE_PORT=5432
- MOONLIGHT_DATABASE_USERNAME=moonlight
- MOONLIGHT_DATABASE_PASSWORD=s3cret
- MOONLIGHT_DATABASE_DATABASE=moonlight
- MOONLIGHT_PUBLICURL=http://localhost:9069
- MOONLIGHT_AUTHENTICATION_OAUTH2_ACCESSENDPOINT=http://localhost:8080 # Use this when moonlight is using local oauth2 and a different port as the public url
volumes:
- ./data/moonlight:/app/storage
links:
- db
pull_policy: build
db:
image: postgres:latest
restart: always
environment:
- POSTGRES_USER=moonlight
- POSTGRES_DB=moonlight
- POSTGRES_PASSWORD=s3cret
volumes:
- ./data/database:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5