@Server Owners
Version 0.9.7
SWITCH TO MAIN BRANCH:
- backup your
/config and /certs folder
- Make a database backup if you want.
in the /opt/honsefarm/ folder perform:
sudo git checkout main
sudo git fetch
sudo git reset --hard origin/main
and then
sudo git pull
The git pull should tell you no files are changed.
You are now on the main branch, which is the default braunch for new stable releases. sudo ./manage.sh update calls will also start utilizing the currently activated branch (which is now main).
Admin panel updates
- Admin panel now has authorization built-in with user/password using ASP.NET Core identity.
- Admin panel now has moderator and administrator roles
- Admin panel now has user profile management in the user details panel as well
- Installer now prompts the user for initial user, password and creates an admin user on first run
- Installer asks the user if they want to firewall the admin panel or leave it open (for mods).
Server updates
- Removed mare census across the board to not aligning with honsefarm
- Removed Mare Character Data Online (MCDO) as a feature
Notes for admin panel:
This update adds new ASP.NET Core Identity tables to the database, some of which might not be used now but might be in the future.
I chose ASP.NET Core Identity framework because it is well integrated with ASP.NET Core and provides a solid foundation for user management, authentication, and authorization.
Additionaly, it allows for integrating OAuth providers in the future if needed.
Seeding an admin user:
Add the following configurations to your adminpanel.appsettings.Production.json to seed an admin user (one-time):
{
"InitialAdminUserName": "president",
"InitialAdminPassword": "hunter2",
"Logging": { ..... }
}
Removing the IP whitelist:
If you want to make the adminpanel available to others as well you will need to remove the ip whitelist.
From docker-compose.yml in /opt/honsefarm/ remove the line:
- traefik.http.routers.adminpanel.middlewares=home-ip-whitelist@file from the adminpanel section.
After this run docker compose up -d to apply the changes.