Wykres commitów

364 Commity (master)

Autor SHA1 Wiadomość Data
Chris McCormick 5c33e28b94 Proxy scp for piku user, add 'download' local cmd. 2024-04-11 19:01:39 +01:00
Rui Carmo 23159ddde8 Added "preflight" worker 2023-12-26 17:28:19 +00:00
Rui Carmo 7eae80a795
Revert f-strings
We've not committed to standardising on those yet
2023-09-18 15:38:22 +01:00
Rui Carmo c05a3a875b
Create app DATA_ROOT 2023-09-18 15:36:42 +01:00
Tobias Burger b7dfb3fdac Support Clojure CLI 2023-07-20 15:28:48 +02:00
Rui Carmo f7145865ce
Merge pull request #244 from kinostl/bugfix/multi-domain
Add multi-domain workaround due to ClickCommand.
2023-05-12 08:46:22 +01:00
Marius A e02b745529
fix lint space 2023-04-06 19:55:08 +03:00
Marius A 4acaaf4ead
fix lint spaces 2023-04-06 19:50:52 +03:00
Marius 25a8daa31f restart must work even if the app is stopped when called. At the end, the app should be running. 2023-04-06 19:44:52 +03:00
Chris McCormick ea1fcb5d22 Use get_boolean to get truthy ENV vars throughout.
Fixes #291.
2023-03-25 17:39:57 +08:00
Rui Carmo f49b83e54d
Merge pull request #262 from ewalk153/increase-min-py-version
Raise minimum python version to 3.7
2023-03-23 08:35:20 +00:00
Rui Carmo c455991f0e improve cron parsing 2023-02-02 23:11:38 +00:00
Rui Carmo 29264fa909 Set unbuffered output and readable UTF-8 mapping 2023-02-02 22:31:27 +00:00
Rui Carmo 9ea5d2b008
Keep linter happy 2023-02-02 18:55:55 +00:00
Rui Carmo 0d6d4093e8
Fix long-standing cron validation off-by-one 2023-02-02 18:53:55 +00:00
Eric Walker cb38cca13b Minor lint fixes
- bump complexity up to 78
- fixed whitespace formatting in piku.py (and legacy copy)
2023-01-17 22:33:15 -05:00
Rui Carmo e902c17e94 very slight tweak to procname for monitoring 2023-01-17 21:49:31 +00:00
Rui Carmo 530837fdb8
Merge pull request #259 from ewalk153/correct-static-assets-example 2023-01-17 09:10:15 +00:00
Rui Carmo 076b00f268
Be consistent with existing headers 2023-01-16 23:22:49 +00:00
Rui Carmo ae6f7c7494
Mapped X_FORWARDED_FOR 2023-01-16 23:20:31 +00:00
Rui Carmo f1745b38f0
Fix REMOTE_ADDR when using Cloudflare
This passed because most apps rely on X-Forwarded-For.
2023-01-16 23:16:22 +00:00
Eric Walker 860e83c587 Force trailing slash in static_path 2023-01-11 20:22:01 -05:00
Eric Walker 21a576ddea Accept Procfile path beginning with : 2023-01-11 20:22:01 -05:00
Eric Walker 6af0be4e0a Raise minimum python version to 3.7
- Ubuntu LTS (version 22) min python is now 3.7
- We get better formatters
- Latest version of click dropped support for Python 3.6

After this change, we can start a round of code cleaning in prep for a
1.0.

This change revert the Ubuntu target to ubuntu-latest and drops 3.6 from
the automated tests.
2023-01-08 09:38:39 -05:00
Eric Walker e2e84b8c55 Make style changes to pass linting
Bump max complexity to from 60 to 76.
2023-01-07 14:17:07 -05:00
Rui Carmo 81d45e85ad
different fallback default 2022-12-30 18:40:20 +00:00
Rui Carmo 27c87a2235
More control variables, standardized to seconds 2022-12-30 18:35:13 +00:00
Rui Carmo 06bc5ca74b
1 day default 2022-12-28 20:43:59 +00:00
Rui Carmo ef27837580
renaming for consistency 2022-12-28 20:06:37 +00:00
Rui Carmo 95f5acc2f1
Fix defaults and add NGINX_CACHE_TIME 2022-12-28 20:05:21 +00:00
Rui Carmo 7768595c03
Affordances when deleting app
We should not delete `DATA_ROOT` and we can't delete `CACHE_ROOT` since `nginx` will insist on making it private
2022-12-27 15:35:51 +00:00
Rui Carmo 9abbeb1f31
First pass at caching 2022-12-27 15:11:31 +00:00
Rui Carmo 4229a618cf
Remove confusing and undocumented HTTPS_TRUE 2022-12-19 20:33:25 +00:00
Rui Carmo 45eba60f6d
Remove IPv6 configuration when DISABLE_IPV6 is set
This fixes running Piku in some restricted environments when IPv6 is not active, and paves the way for future auto-detection.
2022-12-19 20:14:59 +00:00
Sean Fitzgerald 6b949591f9 Merge branch 'master' into issues/236 2022-10-17 08:23:07 -07:00
Chris McCormick c7af8b2e17 Fix trailing whitespace. 2022-10-17 09:32:17 +08:00
Sean Fitzgerald 340f90b0c0 we allow long lines
so why fight with short line indenting?
2022-10-15 19:59:17 -07:00
Sean Fitzgerald 6b9175e390 flake8 failures 2022-10-15 16:12:56 -07:00
Sean Fitzgerald b0478df36a Pass default=None to getattr 2022-10-15 16:08:43 -07:00
Sean Fitzgerald 88b7745a9e Try in a backwards-compatible manner 2022-10-15 11:25:26 -07:00
Eric Walker 08b5ed2d16 Add bundle command use to VIRTUAL_ENV path
A bundler install may attempt to a path that requires sudoer privileges.

Per https://bundler.io/man/bundle-config.1.html#REMEMBERING-OPTIONS,
`bundle config set --local path` is the preferred way to set a gem path
per project.
2022-10-02 22:39:00 -04:00
Sean Fitzgerald f7ecfee8f7 issues/236 -- address DeprecationWarning in `click`
In [`click==8.0.0`](https://click.palletsprojects.com/en/8.0.x/changes/#version-8-0-0), `MultiCommand.resultcallback` is renamed to `result_callback`, along with a deprecation warning. This change adopts the new naming convention.
2022-07-11 09:05:05 -07:00
Chris McCormick 0b4eba50d7 Fix ValueError from acme cert issuance. 2022-05-12 09:11:32 +08:00
Minty Cream e28f45049c
Add multi-domain workaround due to ClickCommand.
In practice, ClickCommand.argument splits based on spaces. I couldn't find a way to write config:set NGINX_SERVER_NAME=server1 server2 and had to add this hack to allow for config:set NGINX_SERVER_NAME=server1,server2
2022-05-07 09:14:59 -04:00
Chris McCormick 76f6d90983 Add more standard types to gzip compression.
I noticed JS files weren't being sent back compressed by my Piku box because the application/javascript type was missing from the gzip clause. Also added image/svg+xml and application/json for good measure.
2022-04-16 13:30:16 +08:00
Rui Carmo 38e1876856
Merge pull request #230 from chr15m/fix-npm-symlink-issue
Stop npm complaining about the node_modules symlink.
2022-04-02 21:32:34 +01:00
Rui Carmo e4b2265802
Merge pull request #231 from mlainez/default_root_ca
Use letsencrypt by default and allow to change root ca with environme…
2022-04-02 21:32:03 +01:00
mlainez d71a5be125 Rename ROOT_CA environment variable to ACME_ROOT_CA 2022-03-07 10:01:13 +01:00
mlainez 5c1a4ce4b5 Make sure ruby apps are also exposed behind nginx 2022-03-06 14:16:17 +01:00
mlainez f9a55d6c51 Simplify app building since bundle clean could damage other Rails apps that use gem versions marked obsolete for another Rails app when not using local gemsets 2022-03-06 14:12:53 +01:00