Jose Diaz-Gonzalez
e2d215ab4f
fix: do not run enable/disable when using init.d
...
init.d doesn't support these two commands, causing nginx:stop/nginx:start to fail.
2022-11-30 15:00:05 -05:00
Jose Diaz-Gonzalez
a8bc8044e4
feat: switch to systemctl for interacting with the nginx init process
2022-11-29 01:38:36 -05:00
Jose Diaz-Gonzalez
5fed0c45ac
refactor: use the properties system instead of the data dir for tracking whether a proxy should be stopped or started
2022-11-29 01:38:36 -05:00
Jose Diaz-Gonzalez
6fed37b408
refactor: rename pre-restore trigger to scheduler-pre-restore
...
This better reflects what the trigger does, and allows us to use the pre-restore trigger at the beginning of the ps:restore command.
2022-11-29 01:38:36 -05:00
Jose Diaz-Gonzalez
77fbd676bc
feat: start caddy/nginx/traefik prior to restoring applications
...
This ensures routing works as expected.
2022-11-29 01:38:36 -05:00
Jose Diaz-Gonzalez
b97a5c0c00
feat: keep track of whether proxy implementation should be stopped or started
2022-11-29 01:38:36 -05:00
Jose Diaz-Gonzalez
bde7b16a80
chore: reorder commands alphabetically
2022-11-29 01:38:36 -05:00
Jose Diaz-Gonzalez
5c205b9e27
feat: keep track of whether caddy and traefik should be stopped/started
2022-11-29 01:38:36 -05:00
Jose Diaz-Gonzalez
2946e6d632
fix: enable/disable nginx when calling nginx:start/nginx:stop
2022-11-29 01:38:36 -05:00
Jose Diaz-Gonzalez
1d85095ec8
feat: allow dokku user to enable/disable nginx service
2022-11-29 01:38:36 -05:00
Jose Diaz-Gonzalez
b7bff8e152
fix: correct issue with detection of non-https port mapping as https port mapping
...
This allows folks to _only_ set the letsencrypt-email in order to get https working as expected.
Closes #5410
2022-11-29 00:21:04 -05:00
Jose Diaz-Gonzalez
2807d71ac6
fix: do not use traefik priority in service name
...
This breaks the ability to add new rules on the fly and also makes routing a bit more difficult.
2022-11-29 00:19:53 -05:00
Jose Diaz-Gonzalez
1a14731f46
chore: silence the warning message when there are no dokku apps on install
2022-11-28 02:20:54 -05:00
josegonzalez
f8cf40fc2d
Merge pull request #5490 from dokku/custom-traefik-priority
...
Add ability to set a custom priority for traefik routing rules
2022-11-27 23:55:27 -05:00
josegonzalez
7c2ff907f4
Merge pull request #5489 from dokku/5432-lock-exit-code
...
Use exit code 137 to signify a lock was unable to be retrieved when calling ps:retire
2022-11-27 23:13:51 -05:00
josegonzalez
1d13239ace
fix: add missing http part to traefik routing rule
2022-11-27 22:26:47 -05:00
Jose Diaz-Gonzalez
e26b0ba1db
feat: add ability to set a custom priority for traefik routing rules
2022-11-27 22:23:06 -05:00
Jose Diaz-Gonzalez
bc26766b84
refactor: use exit code 137 to signify a lock was unable to be retrieved when calling ps:retire
...
Closes #5432
2022-11-27 20:23:13 -05:00
Jose Diaz-Gonzalez
56beaf6dd5
feat: use a priority when routing requests with traefik
...
This ensures we always use the newer config when there are conflicting versions.
2022-11-27 19:34:05 -05:00
Jose Diaz-Gonzalez
22f6db1c6a
chore: drop nginx config if there is no network config for the app
2022-11-27 15:07:42 -05:00
Jose Diaz-Gonzalez
e458c8e4a6
fix: keep track of old scale values for a single deploy
...
This will ensure we scale things down after usage.
2022-11-27 15:02:45 -05:00
Jose Diaz-Gonzalez
7cc3f33590
fix: create nginx data app directory before usage
2022-11-25 19:58:52 -05:00
Jose Diaz-Gonzalez
8ab2906930
chore: run shfmt
2022-11-25 17:40:45 -05:00
Jose Diaz-Gonzalez
171dad8e88
feat: add method for pulling files when deploying from built images
...
This allows us to be backwards compatible when executing git:from-image.
The nice thing about this pattern is we can also extend it to other parts of the deployment as well, such asn nginx-vhosts fetching
2022-11-25 17:38:15 -05:00
Jose Diaz-Gonzalez
0857e51c43
fix: do not delete the existing procfile if it does not exist
2022-11-25 14:50:35 -05:00
Jose Diaz-Gonzalez
231e562b8d
fix: respect the .missing file and the process-specific procfile when fetching the a procfile command
2022-11-25 14:50:35 -05:00
Jose Diaz-Gonzalez
1455390dd3
fix: reference the correct missing file
2022-11-25 14:50:35 -05:00
Jose Diaz-Gonzalez
55ca8e3d52
chore: drop debug calls
2022-11-25 14:50:35 -05:00
Jose Diaz-Gonzalez
fe4d80a82b
refactor: cleanup zero'd out processes when a Procfile omitting those process types is set
...
This change also moves the referenced Procfile out to a host path once on deploy vs potentially several times, which should speed up deploys a small amount and simplify reasoning about the file.
Closes #5112
2022-11-25 14:50:35 -05:00
Jose Diaz-Gonzalez
4e4f3c839a
chore: drop installation of nginx ppa
...
We've been using OS nginx for quite a while now as it's been updated significantly, so there is no need to use the official ppa anymore.
2022-11-25 14:47:52 -05:00
josegonzalez
d66dc84c28
Merge pull request #5478 from dokku/herokuish-on-arm
...
Allow users to enable herokuish usage on arm/arm64 platforms
2022-11-24 23:00:47 -05:00
josegonzalez
f871c33dec
Merge pull request #5479 from dokku/builder-cleanup
...
Cleanup builder code and docs
2022-11-24 14:47:38 -05:00
Jose Diaz-Gonzalez
7c5b0be2c3
chore: use the correct function when fetching properties with defaults
2022-11-24 14:47:13 -05:00
Jose Diaz-Gonzalez
1238c8d7e0
feat: allow users to enable herokuish usage on arm/arm64 platforms
...
While the majority of buildpacks do not work on non-amd64 platforms, this will at least allow developers the option to choose when to override this setting.
2022-11-24 14:43:47 -05:00
josegonzalez
e48417f18e
Merge pull request #5477 from dokku/josegonzalez-patch-1
...
Add missing config_sub entry to config gitignore
2022-11-24 13:48:16 -05:00
josegonzalez
52f700ff97
fix: add missing app-list entry to config gitignore
2022-11-24 13:47:54 -05:00
josegonzalez
ce5f356015
fix: add missing config_sub entry to config gitignore
2022-11-24 13:47:49 -05:00
Jose Diaz-Gonzalez
67c243b0ba
fix: keep track of case where current deployment does not have a custom nginx.conf.sigil
2022-11-24 00:51:58 -05:00
Jose Diaz-Gonzalez
39beb8894f
fix: cleanup app data
2022-11-24 00:51:21 -05:00
Jose Diaz-Gonzalez
ff9005dd0e
feat: migrate existing installs to new monorepo setup for nginx.conf.sigil file
2022-11-23 20:26:16 -05:00
Jose Diaz-Gonzalez
e3fa0c4bc4
refactor: move nginx.conf.sigil files into app-specific directories
2022-11-23 20:16:28 -05:00
Jose Diaz-Gonzalez
140c1e4d4c
feat: scope the custom config to the current DOKKU_PID
2022-11-23 19:43:29 -05:00
Jose Diaz-Gonzalez
b166db90e6
fix: do not reuse app-specific nginx.conf.sigil globally
2022-11-23 19:41:56 -05:00
Jose Diaz-Gonzalez
bcbe343cf7
refactor: move env var migration to it's own function
2022-11-23 19:33:13 -05:00
Jose Diaz-Gonzalez
17814d4847
refactor: only extract the nginx.conf.sigil from the source code and not an app path
...
The previous method was a bit more difficult for users to interact with as they needed to ensure the file was at a certain path in the built image. This change divorces the file from the built artifact, better aligning the nginx.conf.sigil handling with the rest of Dokku's monorepo support.
A side effect of this is now building proxy configurations does not require access to the built image.
Closes #5207
2022-11-23 19:32:53 -05:00
Jose Diaz-Gonzalez
47f5af44c5
tests: add a test for the error message
2022-11-23 17:46:33 -05:00
Jose Diaz-Gonzalez
f3b04032a8
feat: add warning when a user is attempting to deploy with an ipv4/ipv6 domain name and has the default nginx site file available
...
This might cause an app to not load for users, causing confusion on first use.
Closes #5341
2022-11-23 16:42:58 -05:00
Jose Diaz-Gonzalez
c8a34f906a
chore: remove unused ipv4/ipv6 regex fetch
2022-11-23 16:42:58 -05:00
josegonzalez
280006f811
fix: add missing source call
2022-11-23 16:42:26 -05:00
josegonzalez
eb3db26b3e
Merge pull request #5467 from dokku/5049-wait-to-retire
...
Move DOKKU_WAIT_TO_RETIRE to a checks property
2022-11-22 22:44:33 -05:00