-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a nixos development build for for local linux development (#105)
- Updated `dream2nix` to the latest version. - Removed deprecated inputs related to `dream2nix`, including `devshell`, `flake-compat`, `flake-parts`, and others. - Added new inputs for `purescript-overlay` and `pyproject-nix`. - Updated `nixpkgs` and `flake-utils` to the latest versions. This update syncs the project dependencies with the latest available versions, potentially improving stability and compatibility. * flake building for develop now works * add composer and php to flake.nix * added preinstall to flake.nix and more packages * Added temp buildsteps file File Is to be renamed and moved before merge with main. This file contains a modified version of vagrant/provision.sh specifically made for the nixos development process * moved from mariadb to mysql Mariadb kept crashing my computer and causing long hangs in the terminal, so I swapped to mysql for development * stopped cp of .env.example to .env and fixed access list for mysql Mysql was granting all writes on "*" to both users, mysql uses "%" as a wildcard, I forgot and messed up * updated shell.nix to only run composer update when running * fixed broken minecraft forge egg * before I break vagrant I took back the old configuration file as well * Transitioned most systemd tasks to nixos task configurations and replaced /var/www/pterodactyl to cwd * updated flake.lock with latest nix configuration * everything up to starting wings is working, time to see if I can get web server working as well * added "--rm \" to buildsteps * fixed many issues and working on getting mariadb working properly * fix: mariadb now gets initialized properly * fix: update favicon & password reset (#91) * removed linux info for local development * chore: moved buildsteps to nix folder * removed all unnecesary services in configuration.nix * added docker-compose.yml so that the buildsteps file has something to do * Switching to using mysql in a docker container over inside the nix flake * Fix: Changed from nixos-unstable to nixos-24.05 packages Also added mariadb service back in flake.nix and stop mariadb docker container on nix shutdown * updated flake.lock to match packager version change * fix: buildsteps script not connecting to mariadb server * fix: wings didn't work in cli so made it a docker container and organized docker-compose files * As we include a Dockerfile now, we need to push .dockerignore for smaller images * fix: changed directory for wings docker container from ./nix/pterodacytl/<name> to ./<name> * fix: changed docker-compose paths in flake.nix * fix: wings docker-compose.yml now uses network_mode host * added some resets for mariadb and pterodactyl whenever the app is started(subject to change in the future * updated some nixos specific "Features" and ensure mariadb and wings folders exists * deleted mariadb reset in buildsteps and added 20 seconds for mariadb to start deleting the mariadb folders was causing errors to occur, and not waiting long enough causes database connection errors * added mariadb docker-compose file and added extra stuff to .gitignore * added nix files to dockerignore * added linux development guide * Disable recaptcha on setup * docs: Formatting fixes * docs: Linux doesn't use vagrant anymore * docs: https does not work I really need to proofread my docs before I push them * docs: Added Prereqs for linux local development * docs: we do not need to be told about the docker image twice * deleted configuration.nix and decreased flake.nix clutter * docs(README): notes about local development on linux added info about pterodactyl wings not working in nixos dev environment * fixed some broken markdown formatting * Revert last commit * added one more VERY important step to readme * added a few fixes with systems other than mine * added a run.sh file to easily run nixos * Added a env.nix file because it's configuration is slightly different to normal env * fix(README): use Git for cloning * Updated pterodactyl discord links to pyrodactyl links * added a health check to maria to ensure it's up before continuing * removed benign sql query and added --no-interaction to key:generate * updated more pterodactyl links to pyrodactyl links --------- Co-authored-by: he3als <[email protected]>
- Loading branch information
Showing
14 changed files
with
338 additions
and
620 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Vagrantfile | ||
vagrant/ | ||
.swc/ | ||
.turbo/ | ||
nix/ | ||
flake.nix | ||
flake.lock | ||
|
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
APP_ENV=production | ||
APP_DEBUG=false | ||
APP_KEY=base64:70nPUP+VYp/0HXxmnXbM2BJO6E1+JizA1XhAf72bAG8= | ||
APP_THEME=pterodactyl | ||
APP_TIMEZONE=UTC | ||
APP_URL="http://localhost:8000" | ||
APP_LOCALE=en | ||
APP_ENVIRONMENT_ONLY=false | ||
|
||
# If you are using a proxy server set this to be | ||
# the Proxy server's ip adddress. | ||
# TRUSTED_PROXIES=* | ||
|
||
LOG_CHANNEL=daily | ||
LOG_DEPRECATIONS_CHANNEL=null | ||
LOG_LEVEL=debug | ||
|
||
DB_CONNECTION=mysql | ||
DB_HOST=127.0.0.1 | ||
DB_PORT=3306 | ||
DB_DATABASE=panel | ||
DB_USERNAME=pyrodactyluser | ||
DB_PASSWORD=pyrodactyl | ||
|
||
REDIS_HOST=127.0.0.1 | ||
REDIS_PASSWORD=null | ||
REDIS_PORT=6379 | ||
|
||
CACHE_DRIVER=redis | ||
QUEUE_CONNECTION=redis | ||
SESSION_DRIVER=redis | ||
|
||
HASHIDS_SALT=qFr7NZGVVpsX79HvKPqv | ||
HASHIDS_LENGTH=8 | ||
|
||
MAIL_MAILER=smtp | ||
MAIL_HOST=smtp.example.com | ||
MAIL_PORT=25 | ||
MAIL_USERNAME= | ||
MAIL_PASSWORD= | ||
MAIL_ENCRYPTION=tls | ||
MAIL_FROM_ADDRESS=no-reply@example.com | ||
MAIL_FROM_NAME="Pterodactyl Panel" | ||
# You should set this to your domain to prevent it defaulting to 'localhost', causing | ||
# mail servers such as Gmail to reject your mail. | ||
# | ||
# @see: https://github.com/pterodactyl/panel/pull/3110 | ||
# MAIL_EHLO_DOMAIN=panel.example.com | ||
|
||
APP_SERVICE_AUTHOR="[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
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,8 +1,8 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: Installation Help | ||
url: https://discord.gg/pterodactyl | ||
url: https://pyro.host/discord | ||
about: Please visit our Discord for help with your installation. | ||
- name: General Question | ||
url: https://discord.gg/pterodactyl | ||
about: Please visit our Discord for general questions about Pterodactyl. | ||
url: https://pyro.host/discord | ||
about: Please visit our Discord for general questions about Pyrodactyl. |
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
Oops, something went wrong.