Wykres commitów

351 Commity (2c0cd1976a55707a72a0dc51a908a32ab3e46d4c)

Autor SHA1 Wiadomość Data
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 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
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
mlainez 610921280c Change app detection order to avoid Rails apps using webpacker are detected as nodejs apps first (mostly Rails 6.0) 2022-03-06 14:05:37 +01:00
mlainez bfec7c2d94 Use letsencrypt by default and allow to change root ca with environment variable 2022-03-06 13:47:45 +01:00
Chris McCormick 2f248d0852 Stop npm complaining about the node_modules symlink.
This fixes #228 whilst retaining the existing behaviour of symlinking node_modules to the actual location in envs/APPNAME.
2022-02-25 14:34:31 +08:00
Rui Carmo a7df317d96 allow dashes 2021-12-11 12:36:05 +00:00
Rui Carmo bd1f2c9e88
Renamed internal environment variable 2021-12-08 16:17:53 +00:00
Rui Carmo 65284fa6b7
Merge pull request #129 from jsenin/piku-cli-plugins
Extend cli commands with plugins
2021-12-08 16:10:45 +00:00
Rui Carmo 8441a16fc7 make pyflake happier 2021-12-07 09:51:37 +00:00
Rui Carmo 5ed9117655 PIKU_AUTO_RESTART now defaults to true 2021-12-07 09:29:35 +00:00
Rui Carmo 4e6187ad31 renamed internal env vars to avoid collisions 2021-12-07 09:23:34 +00:00
Chris McCormick 60123c4abe Fix cron regex matching on py3.5 2021-11-30 21:35:45 +08:00
Alper Kalaycioglu 82678c59a6
#214 Rename deploy java functions 2021-11-01 20:53:58 +01:00
Alper Kalaycioglu c6420e2ca0
#214 Correct gradle deployment 2021-11-01 20:40:10 +01:00
Chris McCormick 03e3392229 Request multi-domain SSL cert if required.
With this change the user can put multiple space-separated domains in NGINX_SERVER_NAME and a certificate will be requested that covers all of them. Fixes #181
2021-09-23 17:10:26 +08:00