Commit Graph

294 Commits

Author SHA1 Message Date
Jamie Curnow
29990110b1
Convert db backend to use Gorm, with basis for support
for Mysql and Postgres in addition to existing Sqlite
2023-05-26 11:37:39 +10:00
Jamie Curnow
ab772d645b
Support for dynamic ip ranges from urls
- Adds ipranges command to fetch ip ranges from Cloudfront and Cloudflare
- Write the ipranges file on docker start
- Support disabling ipv4 as well as ipv6 now
- Prevent disabling both
2023-05-12 09:40:45 +10:00
Jamie Curnow
00aaa024a6
Replace sqlite module with a non-cgo version. Removed usql from dev 2023-04-11 21:26:09 +10:00
Jamie Curnow
292a209195
Ported #2582 to v3 2023-03-08 08:37:43 +10:00
Jamie Curnow
215083f6cf
Certificates Renewal + SSE
- Certificate renewal is just a re-request as it's forced already
- Rejig the routes for readability
- Added Server Side Events so that the UI would invalidate the
cache when changes happen on the backend, such as certs being
provided or failing
- Added a SSE Token, which has the same shelf life as normal token
but can't be used interchangeably. The reason for this is, the
SSE endpoint needs a token for auth as a Query param, so it would
be stored in log files. If someone where to get a hold of that,
it's pretty useless as it can't be used to change anything, only
to listen for events until it expires
- Added test endpoint for SSE testing only availabe in debug mode
2023-03-07 16:42:26 +10:00
Jamie Curnow
35550082bf
Fix test 2023-03-06 08:59:36 +10:00
Jamie Curnow
0244187c29
Improved pdns dev config 2023-03-05 22:36:14 +10:00
Jamie Curnow
91fe448782
UI test for change password
Help docs
2023-03-01 16:34:52 +10:00
Jamie Curnow
cfbd7f05d0
fix api doc 2023-02-28 21:29:13 +10:00
Jamie Curnow
fc2df47753
Add certificate model for http and dns
change is_ecc to boolean, its still stored as int in sqlite
2023-02-28 20:55:40 +10:00
Jamie Curnow
7455accf58
Proper 404's for objects 2023-02-27 17:21:40 +10:00
Jamie Curnow
6b7ae48570
Fixes for start-dev and optimisations 2023-02-25 22:52:42 +10:00
Jamie Curnow
bc3d9ec099
Skip build vcs lookups, go 1.20 thing 2023-02-24 21:21:14 +10:00
Jamie Curnow
0eeed1695c
ignore nancy warning 2023-02-24 21:16:17 +10:00
Jamie Curnow
c288886fd4
Use eris for error management 2023-02-24 17:19:07 +10:00
Jamie Curnow
80315bd50e
Fix hot reloading backend with new updates to Task 2023-02-19 15:11:22 +10:00
Jamie Curnow
f649e2946e Fix tests 2023-01-16 16:18:36 +10:00
Jamie Curnow
9a5cbbba49 Updated go packages 2023-01-16 14:11:12 +10:00
Jamie Curnow
306ac20457 Certificate table work, shows error message in popover 2023-01-16 11:32:45 +10:00
Jamie Curnow
ba138581e1 Swagger/Lang additions 2023-01-14 09:50:32 +10:00
Jamie Curnow
456c59c746 Improvements for certificates table, adds expansion object to certificates 2023-01-14 09:45:08 +10:00
Jamie Curnow
6c76c041c4 Access lists basics 2023-01-13 15:03:28 +10:00
Jamie Curnow
a82df0d931 Fix cypress tests 2023-01-13 11:57:09 +10:00
Jamie Curnow
e4595860f5 Fix unit test 2023-01-13 11:17:43 +10:00
Jamie Curnow
29a4ac42d0 Added missing object type 2023-01-13 10:09:26 +10:00
Jamie Curnow
5d3bc0fabd Refactor acme.sh dns providers
- updated chakra and typescript
- added locales for dns provider configs
2023-01-12 16:25:43 +10:00
Jamie Curnow
1d5d3ecd7a Add user expansion to upstream model 2023-01-10 12:57:43 +10:00
Jamie Curnow
8033d052fe Trim whitespace from names of objects on save 2023-01-10 12:50:46 +10:00
Jamie Curnow
7ea64c46e9 Prevent deleting certificate that is use 2023-01-09 23:31:47 +10:00
Jamie Curnow
88b46ef9ef Prevent deleting upstream that is use 2023-01-09 23:29:16 +10:00
Jamie Curnow
f5b3568893 Edit upstreams, added swagger docs 2023-01-09 16:19:23 +10:00
Jamie Curnow
6147ee925e Tweak config content 2023-01-09 15:48:52 +10:00
Jamie Curnow
5586d16afd Add endpoints to return nginx config from disk 2023-01-09 15:42:56 +10:00
Jamie Curnow
ca4d92d793 better host upstream support 2023-01-09 13:18:11 +10:00
Jamie Curnow
f6b219772d Adds proxy host vars 2023-01-09 08:49:49 +10:00
Jamie Curnow
6efa4e2beb Nginx config files with suffixes for deleted/disabled/errors 2023-01-06 14:23:04 +10:00
Jamie Curnow
17a108f75f Use upstream in host config 2023-01-06 11:42:02 +10:00
Jamie Curnow
bc6825c148 Ignore vulnerability, can't fix until next golang version 2023-01-04 16:21:08 +10:00
Jamie Curnow
5e5f0de0e2 - Added upstream objects
- Renamed host templates to nginx templates
- Generate upstream templates
- Better nginx error reporting when reloading
- Use tparse for golang test reporting
2023-01-04 15:53:52 +10:00
Jamie Curnow
b3ae2f4dbb Fix dns provider name on dns providers page 2023-01-03 16:49:26 +10:00
Jamie Curnow
726b6e69f7 Skip acceptable vuln 2022-11-08 10:40:15 +10:00
Jamie Curnow
c00b690ed3 Updated deps, go.19 migration, nginx template work 2022-11-08 10:03:45 +10:00
Jamie Curnow
8d37f5df8d Write host template on save 2022-07-21 18:02:07 +10:00
Jamie Curnow
5b6dbaf43e Add nginx exec 2022-07-15 14:26:12 +10:00
Jamie Curnow
f51c12ed9a New JobQueue worker 2022-07-15 08:52:38 +10:00
Jamie Curnow
d44f75af1b Preliminary dns provider create working modal 2022-06-01 13:45:31 +04:00
Jamie Curnow
b221446bb0 dns_conoha, dns_dpi, dns_euserv, dns_tele3 2022-06-01 13:23:56 +04:00
Jamie Curnow
523449f050 dns_acmedns 2022-06-01 13:11:21 +04:00
Jamie Curnow
322048d5af dns_loopia 2022-06-01 12:21:14 +04:00
Jamie Curnow
671715042e dns_kinghost, dns_zilore 2022-06-01 12:14:16 +04:00
Jamie Curnow
f37bb2e7dc dns_da 2022-06-01 12:09:35 +04:00
Jamie Curnow
e31b01b80e dns_dreamhost 2022-06-01 09:22:40 +04:00
Jamie Curnow
3bfdc21256 dns_zonomi 2022-06-01 09:11:06 +04:00
Jamie Curnow
5bc2cd9be4 dns_selectel 2022-06-01 09:06:09 +04:00
Jamie Curnow
07739ee84e dns_azure 2022-06-01 09:02:57 +04:00
Jamie Curnow
91d23be4e3 dns_autodns 2022-06-01 08:57:20 +04:00
Jamie Curnow
9dcb1e1c9c dns_namesilo 2022-06-01 08:54:21 +04:00
Jamie Curnow
5729dddaf9 dns_servercow 2022-06-01 08:51:23 +04:00
Jamie Curnow
d1bb22d768 dns_inwx 2022-06-01 08:49:31 +04:00
Jamie Curnow
2110ecc382 Moved v3 code from NginxProxyManager/nginx-proxy-manager-3 to NginxProxyManager/nginx-proxy-manager 2022-05-12 08:47:31 +10:00
Ivan Kristianto
366fcf0bed Fix nginx/certificates search query 2022-02-12 12:46:06 +07:00
jc21
d7e0ae0fa0
Merge pull request #1701 from jc21/escape-credential-backslashes
Correctly escape backslashes in dns plugin credentials
2022-01-02 15:29:31 +10:00
jc21
29ee48530c
Merge pull request #1703 from luoweihua7/develop
fetch cloudflare ipv4/ipv6 fail #1405
2022-01-02 15:28:58 +10:00
chaptergy
c803ec7e26 Adds delay after reloading nginx before requesting ssl certificate using http challenge 2021-12-30 13:21:21 +01:00
Larify
7e67f33766 fetch cloudflare ipv4/ipv6 fail #1405 2021-12-30 11:50:21 +08:00
chaptergy
9dd5644183 Correctly escape backslashes in dns plugin credentials 2021-12-29 16:30:49 +01:00
jc21
adc5a2020a
Merge pull request #1666 from TobiasKneidl/patch-1
Update default.conf to follow the default site setting also for ipv6
2021-12-27 11:03:14 +10:00
Tobias Kneidl
bb422d4454
Update default.conf 2021-12-22 00:24:05 +01:00
jc21
d45f39aae3
Merge pull request #1538 from jc21/adds-http-challenge-test
Adds buttons to test availability of server from public internet
2021-11-10 09:15:26 +10:00
chaptergy
ddd538944a Skip migration if setting does not exist 2021-11-09 14:03:39 +01:00
chaptergy
1f879f67a9 Reverts back to proxy_pass without variables 2021-11-09 13:57:39 +01:00
Chaptergy
ee89dedd0f Adds migration to regenerate default host 2021-11-08 23:11:56 +01:00
jc21
432062e0f4
Merge pull request #1559 from jc21/variable-fix-custom-locations
Fixes custom location with capture groups
2021-11-08 12:29:43 +10:00
jc21
48e96c46d5
Merge pull request #1565 from jc21/removes-hsts-from-admin-ui
Removes HSTS from admin ui
2021-11-08 12:27:36 +10:00
jc21
25e9acf618
Merge pull request #1566 from jc21/cleans-dependencies
Removes unused dependencies
2021-11-08 12:27:04 +10:00
jc21
a517e80236
Merge pull request #1567 from jc21/removes-renew-delay
Removes random delay when renewing certificates with the renew now button
2021-11-08 12:26:34 +10:00
Julian Reinhardt
cf4d1f73fa Uses letsencrypt config file everywhere 2021-11-06 22:31:13 +01:00
Julian Reinhardt
c203d1a0d8 Requires ~() in location to remove $request_uri and removes $request_uri if it is just a slash 2021-11-06 13:38:02 +01:00
Julian Reinhardt
5f29f6b039 Removes random delay when renewing certificates with the renew now button 2021-11-05 14:20:12 +01:00
Julian Reinhardt
f75b5b867b Fixes formatting 2021-11-05 14:01:50 +01:00
Julian Reinhardt
67463ca136 Removes unused dependencies 2021-11-05 13:59:19 +01:00
Julian Reinhardt
8db541f37f Removes HSTS from admin ui 2021-11-05 00:09:05 +01:00
Julian Reinhardt
38ec0f9f95 Adds logs to backend when testing http challenge 2021-11-04 11:16:23 +01:00
Julian Reinhardt
3d80759a21 Renames the $upstream variables and does not append $request_ui if capture group exists in location 2021-11-04 10:08:15 +01:00
Julian Reinhardt
ffe3db8c08 Falls back to SQLite if no environment variables are provided 2021-11-02 12:22:39 +01:00
Julian Reinhardt
9efe6cfb39 Minor fixes 2021-10-31 13:41:29 +01:00
Julian Reinhardt
c86a1a50bd Fixes formatting 2021-10-31 00:28:43 +02:00
Julian Reinhardt
c55476b196 Adds buttons to test availability of server from public internet 2021-10-31 00:19:18 +02:00
Julian Reinhardt
bbde7a108a Use variable with full uri in proxy pass 2021-10-25 14:48:22 +02:00
Julian Reinhardt
87731a8b5c Revert "Utilise variable for custom locations proxy_pass"
This reverts commit 6c1ae77a2a.
2021-10-25 14:27:37 +02:00
chaptergy
4e3c7749af Removes sorting of domain names when creating a certificate 2021-10-12 16:18:11 +02:00
jc21
281906c0b5
Merge pull request #1476 from jc21/dependabot/npm_and_yarn/backend/objection-2.2.16
Bump objection from 2.2.2 to 2.2.16 in /backend
2021-10-12 10:36:34 +10:00
dependabot[bot]
6fa81b179b
Bump objection from 2.2.2 to 2.2.16 in /backend
Bumps [objection](https://github.com/vincit/objection.js) from 2.2.2 to 2.2.16.
- [Release notes](https://github.com/vincit/objection.js/releases)
- [Commits](https://github.com/vincit/objection.js/commits/2.2.16)

---
updated-dependencies:
- dependency-name: objection
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-11 01:53:33 +00:00
chaptergy
6d8c4218f1 Replaces fixed certbot plugin version with optional version requirements 2021-10-07 17:13:48 +02:00
nikhen
ce503232c3 data.email should NOT be shorter than 8 characters #845 2021-09-12 15:01:55 +02:00
Jamie Curnow
b96c996a45 Log more info for internal errors in debug mode 2021-09-09 08:46:09 +10:00
bergi9
f022e84979
Add SSL and HTTP2 into IPv6 on listen.conf
I can only server contents with IPv6 because I'm sitting behind CGN on IPv4. When enabling HTTP2 it still not serve contents with HTTP2 as there are missing arguments in the `listen`. But it still does the SSL encryption.
Previous to this commit it generates:
```
listen 80;
listen [::]:80;

listen 443 ssl http2;
listen [::]:443;
```
Now it generates:
```
listen 80;
listen [::]:80;

listen 443 ssl http2;
listen [::]:443 ssl http2;
```
2021-09-07 22:50:49 +02:00
dependabot[bot]
30a442807d
Bump tar from 4.4.15 to 4.4.19 in /backend
Bumps [tar](https://github.com/npm/node-tar) from 4.4.15 to 4.4.19.
- [Release notes](https://github.com/npm/node-tar/releases)
- [Changelog](https://github.com/npm/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-tar/compare/v4.4.15...v4.4.19)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-02 00:11:00 +00:00
jc21
1626c8edd1
Merge pull request #1343 from ssrahul96/develop
Added support to download Let's Encrypt Certificate
2021-09-02 10:09:45 +10:00
Rahul Somasundaram
ca6561bf6c
updated debug statement 2021-09-01 11:50:51 +05:30