-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
V0.3: HTTPS with LetsEncrypt and ReadMe changes
- Loading branch information
Kim
committed
Oct 6, 2024
1 parent
fe970e8
commit 50e21b9
Showing
9 changed files
with
162 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"MaxConsoleMessages": 100, | ||
"ServerJarPath": "/your/path/to/minecraft/server.jar", | ||
"ServerJarPath": "/path/to/server.jar", | ||
"JavaArguments": "-Xms1G -Xmx1G -XX:+UnlockExperimentalVMOptions", | ||
"PanelAccess": "$2a$14$NXRKFP8VW6SF7rCM3rEiQOx1T8Y/pMq9sxLNYgsRrxB7yL6LMt5qC" | ||
"PanelAccess": "$2a$14$NXRKFP8VW6SF7rCM3rEiQOx1T8Y/pMq9sxLNYgsRrxB7yL6LMt5qC", | ||
"UseLetsEncrypt": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,11 @@ | |
"Default": "Information", | ||
"Microsoft.AspNetCore": "Warning" | ||
} | ||
}, | ||
"AllowedHosts": "*", | ||
"LettuceEncrypt": { | ||
"AcceptTermsOfService": true, | ||
"DomainNames": [ "yourdomain.com", "www.yourdomain.de" ], | ||
"EmailAddress": "[email protected]" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,10 @@ | |
"Microsoft.AspNetCore": "Warning" | ||
} | ||
}, | ||
"AllowedHosts": "*" | ||
} | ||
"AllowedHosts": "*", | ||
"LettuceEncrypt": { | ||
"AcceptTermsOfService": true, | ||
"DomainNames": [ "yourdomain.com", "www.yourdomain.de" ], | ||
"EmailAddress": "[email protected]" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ This is a simple web-based dashboard, created to make administration of a Minecr | |
|
||
- **Customizable Display:** Limit the number of console messages displayed on the console page. | ||
|
||
- **Server Control:** Quick-controls for things like time, status, weather etc. | ||
- **Server Control:** Quick-controls for things like time, status, weather, etc. | ||
|
||
- **Server Environment Compatibility:** Please note that some functions depend on specific server environments and Minecraft versions like Forge, CraftBukkit, etc. | ||
|
||
|
@@ -32,11 +32,11 @@ For more information about forks, environments, and versions see here: [spigotmc | |
|
||
- **Actions:** Perform actions such as sending messages, changing player gamemodes, killing, kicking, banning, and granting or removing operator rights. | ||
|
||
- **Version Compatibility:** Some actions depend on the Minecraft server version (s | ||
- **Version Compatibility:** Some actions depend on the Minecraft server version (s) | ||
|
||
### Management | ||
|
||
- **Customize Settings:** Configure application settings through the 'BlazorMinecraftServerSettings.json' file. (Dashboard WIP) | ||
- **Customize Settings:** Configure application settings through the 'BlazorMinecraftServerSettings.json' file. | ||
|
||
- **Adjust Visibility:** Customize the maximum number of visible console messages. | ||
|
||
|
@@ -48,6 +48,12 @@ For more information about forks, environments, and versions see here: [spigotmc | |
|
||
- **Recommended Version:** Only versions 1.17 or higher are really "supported" due to specific needed message formats. | ||
|
||
### HTTPS/HTTP Configuration | ||
|
||
- **Secure Connection:** The application supports HTTPS for secure connections using Let's Encrypt. For users who wish to enable HTTPS, configuration is required in the `appsettings.json` and `BlazorMinecraftServerSettings.json` files. | ||
|
||
- **Port Usage:** When HTTPS is enabled, the server listens on port 443. If HTTPS is not enabled, the server defaults to HTTP on port 5000. It is recommended to use HTTPS for better security and user trust. | ||
|
||
## Installation and Usage | ||
|
||
### Prerequisites | ||
|
@@ -74,13 +80,35 @@ Follow these steps to install and use Blazor Minecraft Server Manager: | |
|
||
1. **Download:** Download the latest release from the [Releases](https://github.com/liebki/MinecraftBlazorSuite/releases) section of the repository. | ||
|
||
2. **Configuration:** Customize the settings by editing the 'BlazorMinecraftServerSettings.json' file. This includes specifying the server jar file path and Java cmd arguments. | ||
|
||
3. **Launch:** Run the application and therefore the Minecraft server, using .NET Core `dotnet [MinecraftBlazorSuite.dll/MinecraftBlazorSuite.exe]` | ||
|
||
4. **Access:** Open your web browser and access the web interface by entering the appropriate URL. | ||
|
||
- **The url should be http://server-ip:5000** | ||
2. **Configuration:** | ||
- **BlazorMinecraftServerSettings.json:** Customize the Minecraft server settings, such as the server jar file path and Java command arguments. | ||
- **Enabling HTTPS and a Domain Name with Let's Encrypt:** | ||
If you want to use HTTPS with a custom domain and automatically generate SSL certificates using Let's Encrypt, you'll need to update the following configuration files: | ||
|
||
- In the `appsettings.json` file, under the `LettuceEncrypt` section, provide the necessary details for the certificate generation: | ||
```json | ||
"LettuceEncrypt": { | ||
"AcceptTermsOfService": true, | ||
"DomainNames": [ "yourdomain.com", "www.yourdomain.de" ], | ||
"EmailAddress": "[email protected]" | ||
} | ||
``` | ||
- Replace the `DomainNames` with your actual domain and subdomain (if applicable). | ||
- Provide a valid email address in the `EmailAddress` field. This is required for Let's Encrypt to contact you regarding certificate expiration and updates. | ||
|
||
- In the `BlazorMinecraftServerSettings.json` file, set the option `"UseLetsEncrypt"` to `true`: | ||
```json | ||
"UseLetsEncrypt": true | ||
``` | ||
- When `"UseLetsEncrypt": true`, the server will automatically use HTTPS on port 443. If this option is set to `false`, the server will use HTTP on port 5000 by default. | ||
|
||
3. **Launch:** Run the application along with the Minecraft server using .NET Core: `dotnet [MinecraftBlazorSuite.dll/MinecraftBlazorSuite.exe]` | ||
|
||
4. **Access:** | ||
- If HTTPS is enabled and configured with Let's Encrypt, open your web browser and access the web interface by entering the following URL: | ||
- `https://yourdomain.com` | ||
- If HTTPS is not enabled, the web interface will be accessible at: | ||
- `http://server-ip:5000` | ||
|
||
### Version limitations: | ||
|
||
|
@@ -93,27 +121,35 @@ Please be aware that this is work in progress, and there are some issues: | |
- **Using older Versions than 1.17:** | ||
|
||
- You can use theoretically any version, most features will just not work as expected or at all because the messages can't be parsed but the console for example should work at least. | ||
|
||
### Troubleshooting | ||
|
||
If you encounter any issues during installation or usage, refer to the following troubleshooting tips [or create an issue](https://github.com/liebki/MinecraftBlazorSuite/issues): | ||
|
||
- **Q: The MinecraftBlazorSuite console says something like "Error: Unable to access jarfile x.... .jar"** | ||
- A: Make sure the path in the settings file is correct, it sounds like it is not! | ||
- **Q: The MinecraftBlazorSuite console says something like "Error: Unable to access jarfile x.... .jar"** | ||
**A:** Make sure the path in the settings file is correct. It sounds like the specified path does not point to the actual JAR file. | ||
|
||
|
||
- **Q: How do I start the server after I started the interface?** | ||
**A:** Simply log in and visit the console page at `/console`. The server should start after a few seconds. If it doesn’t, verify that the location of the server JAR file is correct. | ||
|
||
|
||
- **Q: The MinecraftBlazorSuite console says something like "File/Process is locked x...."** | ||
**A:** This usually indicates that another server instance is already running. Try closing all running server instances or restart your entire system to resolve this more quickly. | ||
|
||
|
||
- **Q: How do I log in to the panel?** | ||
**A:** The default password to log in is '12345678'. Please change it after your first login! Note that sessions are only valid for about three hours; if you try to access the panel after this period, you will need to log in again. Multiple users can access the interface simultaneously, but there are no checks in place for concurrent logins. | ||
|
||
|
||
- **Q: How do I start the server after I started the interface?** | ||
- A: Simply login and visit the console page under /console and the server should start after a few seconds, if not verify that the location of the server-jar is correct etc. | ||
- **Q: After logging in, I can't open the /console page; I get a red bar at the bottom which says "an error occurred."** | ||
**A:** This issue likely arises because the server JAR file is not set correctly, or the file is incompatible with the server. Please ensure the path to the JAR file is correct before reporting the problem. | ||
|
||
- **Q: The MinecraftBlazorSuite console says something like "File/Process is locked x...."** | ||
- A: This sounds like another server is already running, try closing all servers or better just restart the whole system to solve this faster. | ||
|
||
- **Q: How to log in the panel?** | ||
- A: The password to login is '12345678', please change it after logging in! | ||
- Also a "Session" is only valid for about three hours, so entering the page after the initial login three hours ago, you have to login again. | ||
- Multiple people *could* be online in the interface but there aren't any checks. | ||
- **Q: What do I need to do to use Let's Encrypt with my domain name?** | ||
**A:** To use Let's Encrypt for SSL certification with your domain name, ensure that your domain is correctly configured to point to the server where the application is running. | ||
This is essential for Let's Encrypt to verify ownership of the domain. You can typically do this by setting an A record in your domain's DNS settings that directs the domain to your server's IP address. | ||
Once the domain points to your server, the application will be able to request and validate the SSL certificate. [Getting Started with Let's Encrypt](https://letsencrypt.org/getting-started/). | ||
|
||
- **Q: After login I can't open the /console page, I get a red bar at the bottom which says "an error occured"..** | ||
- A: This propably comes up because the server jar file is not set or the file is not a server or another problem relating to it, please be sure that is correct before reporting a problem. | ||
|
||
## Screenshots / Videos | ||
|
||
|