tsmethurst
9db58dfd57
add comment explaining store.lock
2022-02-08 10:06:43 +01:00
tsmethurst
d9a778a795
put store lock file in base of storage
2022-01-29 12:16:12 +01:00
tsmethurst
4e74c84148
update go-store to latest
2022-01-29 12:15:51 +01:00
tsmethurst
9aa364f1eb
go mod tidy
2022-01-25 14:33:23 +01:00
tsmethurst
c156602c66
ensure blocking calls to getRemoteAccount before showing stuff to client
2022-01-25 13:48:13 +01:00
tsmethurst
5d9e9e0e7f
fix up some account conversion logic
2022-01-25 12:03:25 +01:00
tsmethurst
eba66d3a88
only update account in db if changed
2022-01-25 11:21:22 +01:00
tsmethurst
926b37e271
change getaccount function signature
2022-01-24 18:12:42 +01:00
tsmethurst
a6fb93ae2a
ctx => innerctx
2022-01-24 18:12:28 +01:00
tsmethurst
c12520167d
use background context w/deadline
2022-01-24 18:12:04 +01:00
tsmethurst
8e6ba1de52
start trying to figure out why this test is failing
2022-01-24 18:11:38 +01:00
tsmethurst
0e7f24ff26
test with disk storage as well
2022-01-24 18:11:27 +01:00
tsmethurst
f28cf793ee
upgrade go-store
2022-01-24 17:35:13 +01:00
tsmethurst
667e7f112c
update remote account get/deref logic
2022-01-24 13:12:17 +01:00
tsmethurst
3c1eb155e4
add file size checks
2022-01-23 15:52:18 +01:00
tsmethurst
c157b1b20b
rework data function to provide filesize
2022-01-23 14:41:58 +01:00
tsmethurst
7d024ce74d
use exif-terminator
2022-01-23 14:41:31 +01:00
tsmethurst
589bb9df02
pass reader around instead of []byte
2022-01-16 18:52:55 +01:00
tsmethurst
6f5ccf4355
update dependencies
2022-01-16 18:52:30 +01:00
tsmethurst
18047de666
add go-runners to readme
2022-01-15 17:47:52 +01:00
tsmethurst
723bfe8944
lint, fmt
2022-01-15 17:41:18 +01:00
tsmethurst
6bf39d0fc1
emoji code passing muster
2022-01-15 17:36:15 +01:00
tsmethurst
c4a533db72
start fixing up emoji processing code
2022-01-15 14:33:58 +01:00
tsmethurst
33ca5513ad
pin instanceAccountID to in-process emoji
2022-01-11 17:51:45 +01:00
tsmethurst
113f9d9ab4
pass a function into the manager, start work on emoji
2022-01-11 17:49:14 +01:00
tsmethurst
e0f9323b9a
test the media manager a bit, add shutdown logic
2022-01-10 18:36:09 +01:00
tsmethurst
0ef478584c
add async test
2022-01-09 18:52:28 +01:00
tsmethurst
dccf21dd87
tests are passing, but there's still much to be done
2022-01-09 18:41:22 +01:00
tsmethurst
f61c3ddcf7
compiling now
2022-01-08 17:17:01 +01:00
tsmethurst
c2ff8f392b
further refinements
2022-01-08 13:45:42 +01:00
tsmethurst
7ebe0f6a15
start working on thumb + full funcs
2022-01-04 17:37:54 +01:00
tsmethurst
8abfa7751a
return very partial image on first upload
2022-01-03 17:37:38 +01:00
tsmethurst
e08c0e55ee
add gruf worker pool
2022-01-03 17:37:09 +01:00
tsmethurst
2f57eb5ece
fiddle around with workers
2022-01-02 15:00:53 +01:00
tsmethurst
c4d63d125b
more refactoring, media handler => manager
2021-12-28 16:36:00 +01:00
tsmethurst
6803c1682b
start refactor of media package
2021-12-27 18:03:36 +01:00
zoe-bat
14c472c1ab
[documentation] Add section for systemd service and nginx to installation guide ( #353 )
...
* add nginx and systemd section
* fix typso
* fix mkdoc and dots in config guide
* specify port
* Update nginx.md
* add section about configuring gts to nginx docs
* Update nginx.md
Co-authored-by: zoe <z8V54gHftevp7LeRVyys$8@DosKq^FeQKUWU!WGpTyiLaxGojNdgnWkaWiv673Twg$aPm&hU>
2021-12-26 13:58:15 +01:00
tobi
a01b178467
[documentation] update database docs ( #355 )
...
* update config to new db defaults
* update database docs
2021-12-21 12:24:19 +01:00
embr
ed9158fa05
[fix] Make postgres connections magically work in common setups ( #352 )
...
* Don't use the system 'postgres' database by default
* Use postgres adapter defaults
The pgx code actually goes to great lengths to make postgres connections
Just Work(tm) out of the box, including supporting `~/.pg_service.conf`,
SSL certificates, UNIX sockets if it can find a socket at a common path,
and falling back to TCP to localhost if not.
(On Windows, it won't try to use UNIX sockets, but will read credentials
from %appdata% as is standard over there.)
By applying our flags as overrides only when they're specified, database
connections should Just Work(tm) anywhere `psql gotosocial` does.
2021-12-21 12:08:27 +01:00
tobi
ef5a9256a8
Extend license notices to 2022 ( #354 )
2021-12-20 18:42:19 +01:00
tobi
cb8688f429
Remove unnecessary storage config variables ( #344 )
...
* rewire config to not use extraneous serve vars
* rename 'file' to 'local' for consistency
* use Type and Size again
2021-12-20 15:19:53 +01:00
tobi
2582515b4d
return first offer when no accept header set ( #351 )
2021-12-20 11:08:54 +01:00
kim
635ad2a42f
Update codeberg.org/gruf libraries and fix go-store issue ( #347 )
...
* update codeberg.org/gruf/ libraries
Signed-off-by: kim <grufwub@gmail.com>
* another update
Signed-off-by: kim <grufwub@gmail.com>
2021-12-20 10:35:32 +01:00
embr
86e8e7fd21
Log when listening ( #350 )
...
* Log when starting letsencrypt endpoint + clearer errors
Running `gotosocial server` with the default configuration will try to
bind to :80 and listen for letsencrypt challenges, which will fail if
running as non-root (w/o capabilities), or if eg. nginx hogs the port.
When that happens, this should make it more obvious what's wrong.
* Log what address/port we're listening on
Always nice not to have to guess. Also feels more consistent than just
doing it for the letsencrypt endpoint.
2021-12-20 10:34:57 +01:00
tobi
80ec714117
document post settings ( #346 )
2021-12-14 12:42:20 +01:00
tobi
c111b239f7
Add optional syslog logrus hook ( #343 )
...
* add optional syslog logrus hook
* document syslog
2021-12-12 18:00:20 +01:00
tobi
909f801742
add systemd service example to packaging ( #342 )
2021-12-12 15:54:51 +01:00
zoe-bat
c6912f5425
add example systemd service ( #341 )
2021-12-12 15:48:02 +01:00
tobi
67ac8db190
Upstep Go dependencies ( #340 )
...
* Upstep Go dependencies
* tiny linter fix
* Tidy
2021-12-12 15:47:51 +01:00
tobi
5506a5ecbe
upstep dependencies ( #339 )
2021-12-12 14:31:58 +01:00