Commit graph

4478 commits

Author SHA1 Message Date
caryoscelus
164238b8b5
Fix checking of included file sizes 2024-05-21 11:09:27 +00:00
caryoscelus
fd13b132af
Fix path-to-str 2024-05-10 19:23:05 +00:00
caryoscelus
597bd57bd2
Merge pull request #276 from caryoscelus/git-and-newdir
New directory structure, versioning information and "build" types

- data is separated into config-like files, private files (with keys/user data) and normal site data
- use sensible platform-based defaults for data directories (`~/.local` / `~/AppData` etc)
- support various 'build' types (in particular to differentiate between "portable" and normal setup)
- get versioning info from git
- various code improvements (use `pathlib` instead of string formatting)
- separate Actions from main.py
2024-05-10 11:48:06 +00:00
caryoscelus
2a450445d2
Put correct minimum py version (3.8) 2024-05-10 10:29:12 +00:00
caryoscelus
6260a98759
Merge branch 'main' into git-and-newdir 2024-05-10 10:28:18 +00:00
caryoscelus
f6b970c3f6
Add missing argparseCompat 2024-05-10 10:24:21 +00:00
caryoscelus
2191e496b4
Cleanup 2024-05-10 10:23:51 +00:00
caryoscelus
e9eec9bb27
Merge pull request #254 from caryoscelus/filter-cert
Optional ignoring of compromised id certificates
2024-05-08 23:53:39 +00:00
caryoscelus
d8b06a28bb
Fix directories 2024-05-07 20:58:26 +00:00
caryoscelus
bdddf58712
WIP: change default data directories, subdirectories and config file 2024-05-07 14:03:44 +00:00
caryoscelus
e8da744744
WIP 2024-04-08 13:30:49 +00:00
caryoscelus
e13e0dd189
Merge pull request #264 from YGGverse/fix-ipv6-validation
- fix non-local --ui-ip usage (--ui-ip-protect option)
- fix ipv6 handling
- fixes #263 (IPv6 validation)
2024-04-07 11:56:02 +00:00
caryoscelus
7772036559
Fix some CORS/redirectering cases 2024-04-05 10:49:34 +00:00
caryoscelus
e3b010175f
--ui-ip-protect option to only apply recent privacy protection where it makes sense (i.e. on localhost) by default
refs #263, #270
2024-04-04 23:42:34 +00:00
caryoscelus
d09e1f8757
Build script 2024-04-04 22:15:34 +00:00
caryoscelus
3db5e10882
Better python compatibility detection 2024-04-04 13:14:34 +00:00
caryoscelus
b674737f99
Restructure main, split Actions.py, minor clean-up 2024-04-04 13:08:21 +00:00
caryoscelus
bbe577310c
New config/data path management (WIP) 2024-04-04 12:37:47 +00:00
caryoscelus
33436f7eb6
Remove outdated compatibility code 2024-03-31 16:21:52 +00:00
caryoscelus
41ebf510cb
Merge branch 'master' into git-and-newdir 2024-03-31 16:07:41 +00:00
caryoscelus
6702f331a3
IPv6/non-localhost IP fix
- Content-Security-Policy: `frame-src *` for main UiRequest and `self` for
  user-content UiRequest
- revert change in getHostWithoutPort to make ipv6 work
2024-03-30 14:31:22 +00:00
yggverse
f4e52fce5a rollback ipv6_testip feature as dependent of config implementation #263 #269 2024-03-28 17:06:57 +02:00
yggverse
b928cfc0d5 add ipv6 support to openBrowser method #263 2024-03-28 16:48:01 +02:00
yggverse
3c24e5d34c fix object name #263 2024-03-28 16:32:30 +02:00
yggverse
8fb98991ef fix optional ipv6_testip check #263 2024-03-28 16:31:44 +02:00
yggverse
4030d3a859 remove ipv6_testip info as dependent #263 2024-03-28 16:28:58 +02:00
yggverse
5858a68d11 add ipv6_testip to server info #263 2024-03-28 16:22:44 +02:00
yggverse
658c685a45 add configurable ipv6_testip #263 2024-03-28 16:16:02 +02:00
yggverse
762c5f2402 remove square brackets from IPv6 host #263 #264 #267 2024-03-28 15:52:19 +02:00
caryoscelus
8c90b2d0a2
Merge pull request #266 from YGGverse/gitignore-enabled-plugins
gitignore enabled plugins that disabled by default #265
2024-03-27 20:58:31 +00:00
yggverse
8a95e9b67d gitignore enabled plugins that disabled by default #265 2024-03-27 21:27:53 +02:00
yggverse
d17f4afdd0 fix IPv6 validation #263 2024-03-27 20:33:52 +02:00
caryoscelus
0960adef3a
Merge pull request #261 from caryoscelus/simplified-cors-2
Simplified cors 2
2024-02-10 15:37:16 +00:00
caryoscelus
ca5d573908
Fix typo 2024-02-09 15:55:21 +00:00
caryoscelus
2520024f56
Allow cross-site embedding without "cors-" prefix
..As long as CORS read permission is granted. This is done for
compatibility with sites that relied on lack of enforcing of cross-site
isolation in previous ZeroNet versions.

fixes #259
2024-02-09 15:55:21 +00:00
caryoscelus
e48df971e7
Merge remote-tracking branch 'origin/master' into filter-cert 2024-01-17 21:30:00 +00:00
caryoscelus
94e9f5ab66
Merge pull request #258 from caryoscelus/fix-plugins-argparse
Fix command-line argument style (use dashes instead of underscores)

fixes #257
2024-01-17 21:27:18 +00:00
caryoscelus
f3c57cdc32
Fix command-line argument style (use dashes instead of underscores) 2024-01-17 21:18:15 +00:00
caryoscelus
031dd1946f
Merge pull request #256 from caryoscelus/git
Fetch version info from git or Build file
2023-12-28 20:22:22 +00:00
caryoscelus
25bfc0341c
Use integer rev in UiWebSocket for dashboard compatibility 2023-12-27 14:24:03 +00:00
caryoscelus
d66dafc111
WIP 2023-12-27 13:58:03 +00:00
caryoscelus
15dddc27c6
Get rid of using old-style revision everywhere 2023-12-27 13:17:59 +00:00
caryoscelus
1a8c6aaa93
Fetch version info from git or Build file 2023-12-27 11:27:15 +00:00
caryoscelus
dbe283e593
Fix import 2023-12-26 19:06:09 +00:00
caryoscelus
0382aee68f
CHANGELOG 2023-12-26 15:14:27 +00:00
caryoscelus
cf86f1a9ba
Merge branch 'master' into filter-cert 2023-12-24 12:01:22 +00:00
caryoscelus
6d7c5a4a52
Merge pull request #253 from caryoscelus/py39-compat
Fix py3.9 compatibility
2023-12-23 14:29:58 +00:00
caryoscelus
b208595597
Merge pull request #251 from caryoscelus/options-dash
Use dashes in command line options instead of underscore
2023-12-22 17:21:46 +00:00
caryoscelus
2ce87828b0
Fix py3.9 compatibility
refs #252
2023-12-22 17:20:11 +00:00
caryoscelus
31d94a16b6
Add option to ignore compromised certificates
This would allow to stop spam attacks without pausing sites that allow
compromised certificates and without action from site owners. However,
without mass adoption of adding individual permissions on sites for
valid users of such certificates, this will also block updates from
such users.

In any case this is more of a temporary measure in case we face such
an attack before the whole user id issue is resolved
2023-12-22 12:59:04 +00:00