Gabe Kangas
2600afa022
Update admin (update to Nextjs 12)
2021-10-26 22:54:31 -07:00
Gabe Kangas
6eefca53c8
Split out flags so all functions in main have access
2021-10-25 00:38:09 -07:00
Gabe Kangas
bdce2e13bf
Some linter cleanup
2021-10-25 00:31:45 -07:00
Gabe Kangas
3f4176d8d6
Replace panics with our logging framework
2021-10-25 00:15:58 -07:00
Gabe Kangas
cd15661f08
Split out cli arg handling from main
2021-10-24 23:09:30 -07:00
Gabe Kangas
a40312d733
Update admin
2021-10-24 19:31:06 -07:00
Gabe Kangas and GitHub
c4d2ffd834
Fix crash when an invalid inbound stream is disconnected. Closes #1439 ( #1483 )
2021-10-21 17:21:17 -07:00
Gabe Kangas
b50540dfe9
Remove overly complex and specific docker-compose examples. Closes #1475
2021-10-21 11:48:21 -07:00
Gabe Kangas
04dc5b4451
Remove not useful, unhelpful and scary error
2021-10-21 11:31:19 -07:00
Gabe Kangas
112f6b6aaa
Use bundled VHS with VideoJS and reinstall js libraries
2021-10-21 11:23:41 -07:00
Gabe Kangas
fa46bd95aa
Roll back to Snowpack 2.x.
...
This reverts commit 5cc041577c .
2021-10-21 11:14:28 -07:00
Gabe Kangas
5cc041577c
Update to Snowpack 3
2021-10-21 10:23:24 -07:00
Gabe Kangas
b691fe51fd
Fix paths to fix linguist
2021-10-20 13:14:24 -07:00
Gabe Kangas
269475b423
npm run build to update js modules
2021-10-20 10:27:35 -07:00
Gabe Kangas
95211f51b3
Update admin
2021-10-13 19:53:10 -07:00
Gabe Kangas
e58b378aea
Update vendored files for linguist
2021-10-12 18:20:11 -07:00
Gabe Kangas
01b3489287
Fix some pathing and caching issues with admin controller
2021-10-12 12:48:10 -07:00
Gabe Kangas
a58a1f67d6
Use webroot config value
2021-10-12 12:48:10 -07:00
Gabe Kangas
155eee81f0
Fix path to geoip db after test paths were changed
2021-10-12 12:48:10 -07:00
Gabe Kangas
8098304967
Mark static as vendored
2021-10-11 15:31:40 -07:00
Gabe Kangas and GitHub
ca9d5de192
Embed static resources ( #1466 )
...
* Replace pkger with go:embed for bundling the admin. Closes #844
* Remove references to pkged.go
* Point tests to use an updated version of Go
* Add comment to new exported function
* Cleanup
* Add a dummy pkged.go to alert people to stop using it.
* Add simple browser test to make sure the admin is available and renders
* Don't panic
* Embed bot/scraper metadata template.
Add browser test to validate the rendering of this template.
* Use embedded offline.ts segment
* Remove placeholder thumbnail as its unnecessary
* Remove copying the static directory into the release
* Cleanup
2021-10-11 15:04:16 -07:00
Gabe Kangas and GitHub
f0bd7d2528
Replace pkger with go:embed for bundling the admin. Closes #844 ( #1464 )
...
* Replace pkger with go:embed for bundling the admin. Closes #844
* Remove references to pkged.go
* Point tests to use an updated version of Go
* Add comment to new exported function
* Cleanup
* Add a dummy pkged.go to alert people to stop using it.
* Add simple browser test to make sure the admin is available and renders
* Don't panic
2021-10-11 14:56:00 -07:00
Gabe Kangas
3d1706496e
Update + clean up old js module files
2021-10-11 14:37:41 -07:00
Gabe Kangas
a6ba61079f
Cap the number of renderable messages to increase performance
2021-10-09 20:59:45 -07:00
Gabe Kangas
a57409db13
Get rid of IP address sanity check.
...
Allow the router to return any binding errors directly. Closes #1398
2021-10-09 13:23:48 -07:00
Gabe Kangas
ac1cd9b901
Version constant bump
2021-10-08 21:00:29 -07:00
Gabe Kangas and GitHub
7b097ccdd9
HLS tests for local and S3 storage. Closes #1457 ( #1460 )
2021-10-06 21:03:48 -07:00
Gabe Kangas and GitHub
fb1c919e59
Fix the destination path. Closes #1455 ( #1456 )
2021-10-05 16:45:39 -07:00
Gabe Kangas
09bb48b696
Bump dev version number
2021-09-29 16:36:30 -07:00
Gabe Kangas and GitHub
22fbfec7d3
Create a simple PR template
...
Preparing for Hacktoberfest.
2021-09-29 13:50:28 -07:00
Gabe Kangas
02a5e9f9fa
Bump API doc version
2021-09-22 17:35:18 -07:00
Gabe Kangas and GitHub
db22931fb5
Do not send user joined messages for already active users ( #1416 )
...
* Do not send user joined messages for active users
* Reduce from active within 10min to 5
2021-09-21 14:06:23 -07:00
Gabe Kangas
9ecb51f680
Update admin bundle
2021-09-21 13:57:27 -07:00
Gabe Kangas
5faecda24e
Fix spelling
2021-09-21 11:40:28 -07:00
Gabe Kangas
296f5d13f5
Fix error message about missing ffmpeg
2021-09-20 18:13:38 -07:00
Gabe Kangas
e81d41d092
Explicitly add unsafe-eval only when running automated browser tests
2021-09-18 10:06:47 -07:00
Gabe Kangas and GitHub
cc6b257470
Automated browser testing ( #1415 )
...
* Move automated api tests to api directory
* First pass at automated browser testing
2021-09-17 14:04:09 -07:00
Gabe Kangas
5f3cecced5
Expand CSP
2021-09-17 02:22:43 -07:00
Gabe Kangas
0b9ad4efdc
Update admin bundle
2021-09-13 18:51:05 -07:00
Gabe Kangas
608888317b
Have nightly build create a production build of tailwind
2021-09-13 00:06:10 -07:00
Gabe Kangas and GitHub
1b053ffd1b
Simplify HLS storage paths ( #1393 )
...
* Remove private vs public HLS paths and add a HLS controller. Closes #875
* Use http.ServeFile instead
2021-09-12 11:32:42 -07:00
Gabe Kangas
b92ad00926
Reduce the production build of TailwindCSS from 2M to 12k
2021-09-12 01:20:13 -07:00
Gabe Kangas and GitHub
c6c6f0233d
Expanded linting + fix warnings ( #1396 )
...
* Expand the linters and types of warnings to improve consistency and safety
* Fail lint workflow if there are errors
* golint has been replaced by revive
* Hand-pick some of the default exclude list
* Ignore error when trying to delete preview gif
* Ignore linter warning opening playlist path
* Rename user field Id -> ID
* A bunch of renames to address linter warnings
* Rename ChatClient -> Client per linter suggestion best practice
* Rename ChatServer -> Server per linter suggestion best practice
* More linter warning fixes
* Add missing comments to all exported functions and properties
2021-09-12 00:18:15 -07:00
Gabe Kangas
70e9f4945f
Simplify repo Readme and focus on building/running/contributing and less about features
2021-09-10 16:21:38 -07:00
Gabe Kangas
2cd358d367
Mark micromodal as vendored
2021-09-07 11:04:09 -07:00
Gabe Kangas
37e787560e
Add svg to image list
2021-09-03 21:38:25 -07:00
Gabe Kangas
c7f8899b82
Add preview gif to the short short cache time
2021-09-03 21:37:29 -07:00
Gabe Kangas
31dbdb8746
Increase cache duration for static files
2021-09-03 21:08:44 -07:00
Gabe Kangas
f85dada0cc
Add quicktime player (applecoremedia) to player useragent list
2021-08-31 15:04:29 -07:00
Gabe Kangas and GitHub
7278ce8f26
Merge pull request from GHSA-2hfj-cxw7-g45p
2021-08-30 19:43:28 -07:00
Gabe Kangas
663a7b5fe1
Update admin bundle
2021-08-30 18:24:28 -07:00
Gabe Kangas
5b14a8aa92
Update admin bundle
2021-08-29 18:55:05 -07:00
Gabe Kangas
4a34ccde05
Increase do not autoscroll buffer to fix chat not scrolling to bottom. Fixes #1324
2021-08-29 16:58:37 -07:00
Gabe Kangas
15238bf9de
Add an endpoint for returning a most-compatible logo (non-svg) used in sharing and indexing. Closes #1286
2021-08-27 16:20:16 -07:00
Gabe Kangas
734e16203e
Attempt running tests under freebsd and openbsd vms
2021-08-27 15:34:22 -07:00
Gabe Kangas
ec89fb2def
Remove windows from test matrix. Filed TODO to fix tests for windows
2021-08-27 15:29:38 -07:00
Gabe Kangas
b50f1674a8
Add more test targets for GitHub tests
2021-08-27 15:24:21 -07:00
Gabe Kangas
e3b0af1b67
Expand upon flood detection and chat rate limiting. Closes #1349
2021-08-27 14:43:09 -07:00
Gabe Kangas
99a3aae843
Mark viewer as active when fetching playlist. Closes #1343
2021-08-27 13:43:39 -07:00
Gabe Kangas and GitHub
2094154917
Remove Linode todo
...
As they list the version as "latest" now.
2021-08-22 12:02:38 -07:00
Gabe Kangas
9756c4c4d4
Update admin bundle
2021-08-18 18:25:05 -07:00
Gabe Kangas
1a1e2a3738
Revert "Update test to reflect the newline -> br tag change"
...
This reverts commit 3d09698355 .
2021-08-18 18:08:17 -07:00
Gabe Kangas
e5735b8d6d
Remove adding <br> tags to newlines
2021-08-18 18:08:07 -07:00
Gabe Kangas
3d09698355
Update test to reflect the newline -> br tag change
2021-08-18 17:51:33 -07:00
Gabe Kangas
3618a28240
Re-enable unsafe tags as they are needed for emoji
2021-08-18 17:00:52 -07:00
Gabe Kangas
8907566ed1
Fixing chat message formatting in #1315
2021-08-18 16:11:00 -07:00
Gabe Kangas and GitHub
af7720a483
Use the same screenshot as the web site
...
It's fancier.
2021-08-14 20:24:54 -07:00
Gabe Kangas
04bb97bffc
Fix build error on FreeBSD. Closes #1243
2021-08-13 15:34:00 -07:00
Gabe Kangas
a0a8257cb7
Bump version constant
2021-08-13 00:26:10 -07:00
Gabe Kangas
ea66ccfe3d
Update admin bundle
2021-08-13 00:26:00 -07:00
Gabe Kangas
4ea416fdbe
Update the user object name change time when changing name. Closes #1277
2021-08-13 00:05:22 -07:00
Gabe Kangas
a8c5267e18
Update micromodal
2021-08-13 00:05:22 -07:00
Gabe Kangas
17468f276a
Update markjs
2021-08-13 00:05:22 -07:00
Gabe Kangas
e2f9ea5195
Update htm
2021-08-13 00:05:22 -07:00
Gabe Kangas
c791722d71
Update vhs
2021-08-13 00:05:22 -07:00
Gabe Kangas and Jannik
bf17293e8b
Add automated integration test for client list API.
...
- Connects via websocket
- Verifies user list exists
- If GeoIP data is available it will test that the geo property of a
client is populated.
2021-08-13 08:52:36 +02:00
Gabe Kangas and Jannik
6f57f570d2
Restore GeoIP support to now support chat users. Closes #1304
2021-08-13 08:52:36 +02:00
Gabe Kangas and GitHub
5adf2cdecd
Pass along disconnect time to determine chat disable timer duration ( #1310 )
2021-08-12 23:24:43 -07:00
Gabe Kangas
6fb383d04b
Only ignore messages 5min after disconnect. Part of fixing #1268
2021-08-12 22:40:10 -07:00
Gabe Kangas
f87d4f960a
Add formatting
2021-08-12 22:39:12 -07:00
Gabe Kangas and GitHub
a01fe638cc
Increase golangci-lint timeout
2021-08-12 21:33:11 -07:00
Gabe Kangas
cf87f53da3
Do not send empty type when its not apropriate
2021-08-12 21:20:06 -07:00
Gabe Kangas
9d0ae44c3c
Give stream status webhooks an id and timestamp
2021-08-12 20:02:17 -07:00
Gabe Kangas
53d0e8653e
Remove old unused function
2021-08-12 17:23:28 -07:00
Gabe Kangas
b966d32d77
Incorrect webhook event type is being sent on user joined. Fixes #1302
2021-08-12 13:19:09 -07:00
Gabe Kangas
f5a045dedc
Update admin bundle
2021-08-10 12:19:26 -07:00
Gabe Kangas
784d10c1e9
Remove "Sent" being inserted incorrectly. Fixes #1252
2021-08-05 21:40:40 -07:00
Gabe Kangas
dcc7a7c5c3
Support assigning nil as time instead of setting time as invalid. Fix typo that led to incorrect disconnect time. Maybe addresses #1268 ?
2021-08-03 17:47:16 -07:00
Gabe Kangas
12cbe529de
Fix incorrect handling of messages array. Closes #1287
2021-07-31 12:48:42 -07:00
Gabe Kangas
e72b0c640c
Update error message
2021-07-28 13:00:20 -07:00
Gabe Kangas
810b0cd5da
Explicitly add CORS wildcard on all OPTIONS requests
2021-07-28 12:47:15 -07:00
Gabe Kangas
509c658080
Add OPTIONS preflight support for 3rd party auth.
...
- Explicitly add wildcard CORS header within the middleware.
- Accept all OPTIONS preflight requests within the middlware.
- Add success tests for the OPTIONS request.
- Add failure tests for GET requests.
2021-07-28 12:40:55 -07:00
Gabe Kangas
031a848b7a
No need to publicly log this
2021-07-28 12:37:26 -07:00
Gabe Kangas
8f32c13ca6
Fix incorrect controller method. Remove wildcard cors from /api/chat
2021-07-28 12:36:48 -07:00
Gabe Kangas
41cfe33b8d
Fix typo of missing colon
2021-07-27 15:33:57 -07:00
Gabe Kangas
10f50a03e7
Hide external actions row if there are zero actions. Closes https://github.com/owncast/owncast/issues/1119
2021-07-27 15:25:19 -07:00
Gabe Kangas and GitHub
b5bb28b396
Dependabot does not have access to commit
2021-07-27 13:02:14 -07:00
Gabe Kangas
fac06257ad
Add in the optimization where multiple websocket events can exist within a single message
2021-07-26 19:23:15 -07:00
Gabe Kangas
8b2747e4d7
Add some sqlite optimizations
2021-07-26 17:35:23 -07:00
Gabe Kangas
f20aa4478d
Add a simple caching of chat history as an optimization
2021-07-26 17:35:04 -07:00