123 Commits

Author SHA1 Message Date
Miroslav Šedivý e2688cb853 Upgrade to go1.24 (#168)
* upgrade to go1.24.

* code cleanup.
2025-09-17 20:52:40 +02:00
Miroslav Šedivý 4232861d90 use slices.Contains. 2025-05-29 11:51:31 +02:00
zerohh 1013e80034 Add room paused state (#163)
* add room_Paused from cniu6

* fix "OpenAPi.yml" and api-request

* remove unpaused event and change start event to unpause as well.

* update openapi bindings.

* do not wait for ready when unpausing container.

* fix room create.

* add paused state to Lobby.

* fix roomRecreate.

---------

Co-authored-by: zerohh <zerohh666@163.com>
Co-authored-by: Miroslav Šedivý <sedivy.miro@gmail.com>
2025-05-28 15:54:27 +02:00
Miroslav Šedivý d0776e85fd change version api label. 2025-04-03 22:01:18 +02:00
Miroslav Šedivý 0aa712278f events logs. 2024-09-17 19:24:34 +02:00
Miroslav Šedivý 3aeaf6acf9 fix bug when api version would be set to 0 if there is no m1k1o.neko_rooms.api_version label and org.opencontainers.image. contains different URL. 2024-09-13 20:14:57 +02:00
Miroslav Šedivý 44fa2e06e4 Metrics (#115)
* metrics add totalRooms and runningRooms.

* load initial metrics.

* fix.
2024-03-03 17:31:18 +01:00
Miroslav Šedivý 74fe2d7eab add stop timeout to config. 2023-12-26 16:17:55 +01:00
Miroslav Šedivý 2f7aa7ed13 events fix logging level. 2023-12-26 16:17:55 +01:00
Miroslav Šedivý 77695d42a3 fix double logging. 2023-12-26 16:17:55 +01:00
Miroslav Šedivý b62ac1097c container labels and room event type. 2023-12-26 16:17:55 +01:00
Miroslav Šedivý 7d70f7ac9b fix events. 2023-12-26 16:17:55 +01:00
Miroslav Šedivý 4d2393c457 add is ready to API. 2023-12-26 16:17:55 +01:00
Miroslav Šedivý ab8c6a53ec WIP. 2023-12-26 16:17:55 +01:00
Miroslav Šedivý 4fdf1b9cd8 fix ApiVersion. 2023-11-05 22:23:22 +01:00
Miroslav Šedivý 0a1f150aab fix container by name. 2023-11-04 14:42:15 +01:00
Miroslav Šedivý 0349af9608 fix ambiguous container matches. 2023-10-25 23:50:34 +02:00
Miroslav Šedivý 47ee523205 Allow API versioning (#85)
* add api v3 partial support.

* fix codecs in env.

* fix default codecs.

* split files.

* add session stats for api v3.

* fix API token env.

* fix null array in json.

* add CORS.

* save api version to labels.

* irgnore api token env.

* remove duplicate api version.

* move api version to settings.
2023-10-21 21:26:02 +02:00
Miroslav Šedivý 93c1e6fef8 fix protected mount & export mounts. 2023-10-06 21:49:35 +02:00
Miroslav Šedivý c165c67b27 add context to rooms. 2023-10-04 19:19:44 +02:00
Miroslav Šedivý 177483c20c add 404 response when room not found. 2023-10-03 19:57:33 +02:00
Miroslav Šedivý 112e57539d docker compose fix volumes. 2023-10-03 19:32:40 +02:00
Miroslav Šedivý 4b458a6342 network.external.name is deprecated. 2023-10-01 23:40:21 +02:00
Miroslav Šedivý 4b1b32dd62 fix docker compose volumes readonly. 2023-10-01 23:39:35 +02:00
Miroslav Šedivý edd3ef8663 add hostname & dns to docker-compose exporter. 2023-10-01 14:03:23 +02:00
Miroslav Šedivý e332156170 add domainname & dns to API, #11. 2023-10-01 14:03:23 +02:00
Miroslav Šedivý 0c2e56cf43 add export as docker-compose.yaml. 2023-10-01 02:38:07 +02:00
Miroslav Šedivý 9e60fdde70 make ID only 12 chars long. 2023-10-01 00:29:46 +02:00
Miroslav Šedivý 06b596959a add get entry by name. 2023-10-01 00:27:32 +02:00
Miroslav Šedivý e7b9d39a7c add labels filter support to API. 2023-09-30 17:26:44 +02:00
Miroslav Šedivý 8c099abbe1 upgrade go. 2023-09-30 15:27:23 +02:00
Miroslav Šedivý 9d16ebbf4d allow mounts whitelist without storage, fixes #25. 2023-04-15 14:37:17 +02:00
Miroslav Šedivý 9f46df0022 Add mount devices to API. (#69)
* add room devices to API.

* devicese one 1:1 mapping.

* add devices to gui.

* get used devices.

* rename gpu support to nvidia gpu.
2023-04-15 14:04:23 +02:00
Miroslav Šedivý 4a53222031 move all envs to types. 2023-01-13 18:47:21 +01:00
Miroslav Šedivý bb8bf201fe Add GPU device request support (#84)
* add gpus to api.

* add gpus to gui.

* get gpus all configuration.

* correctly parse gpu device requests.
2023-01-11 21:58:30 +01:00
Miroslav Šedivý e68550a9d4 revert changes. 2022-08-04 00:44:17 +02:00
Miroslav Šedivý ae2582deaf replace lobby with proxy. 2022-08-04 00:44:17 +02:00
Miroslav Šedivý 29727e307e proxy store context in labels. 2022-08-04 00:44:17 +02:00
Miroslav Šedivý 6f35d8f2a3 max connections 0 when using mux. 2022-08-04 00:44:17 +02:00
Miroslav Šedivý 3c7bec1383 traefik.network -> instance.network. 2022-08-04 00:44:17 +02:00
Miroslav Šedivý edc53b879a traefik enabled. 2022-08-04 00:44:17 +02:00
Miroslav Šedivý 8046607742 flexible url if no traefik. 2022-08-04 00:44:17 +02:00
Miroslav Šedivý bb97bb75d2 traefik enable in config. 2022-08-04 00:44:17 +02:00
Miroslav Šedivý e8b875229b Add mux support. (#58)
* add mux support.

* usemux to mux.

* lint fix.

* dev script mux.

* add mux to readme.
2022-07-31 13:52:41 +02:00
Miroslav Šedivý e31841246b refactor instance url. (#56) 2022-04-09 17:59:57 +02:00
Miroslav Šedivý 2ca8e9371b minor changes. 2022-04-09 17:25:15 +02:00
Miroslav Šedivý 06ea90b994 extract pull logic to own manager. (#54) 2022-04-09 17:17:28 +02:00
Miroslav Šedivý 4708fb9371 rename module to full github path. (#53) 2022-04-09 17:03:01 +02:00
Gustavo Brian 90d967c5bd Added NEKO_ROOMS_NEKO_PRIVILEGED_IMAGES setting to run privileged images (#49) 2022-03-24 19:21:48 +01:00
Miroslav Šedivý afe75adcf1 Merge branch 'master' into custom-labels 2022-02-27 21:47:03 +01:00