Skip to content

Commit

Permalink
fea: add ceci service.
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldin95 committed Jan 2, 2025
1 parent 6733a71 commit 2b2b737
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 63 deletions.
4 changes: 0 additions & 4 deletions dist/rootfs/etc/openlan/switch/ceci/http.json.example

This file was deleted.

2 changes: 2 additions & 0 deletions dist/rootfs/etc/openlan/switch/ceci/http.yaml.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
listen: 0.0.0.0:1080
password: http.pass
22 changes: 0 additions & 22 deletions dist/rootfs/etc/openlan/switch/ceci/http2.json.example

This file was deleted.

14 changes: 14 additions & 0 deletions dist/rootfs/etc/openlan/switch/ceci/http2.yaml.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

listen: 127.0.0.1:1080
backends:
- server: <s1>:<port1>
secret: <username>:<password>
match:
- openai.com
- chatgpt.com
- server: <s2>:<port2>
secret: <username>:<password>
match:
- google.com
- github.com
- facebook.com
7 changes: 0 additions & 7 deletions dist/rootfs/etc/openlan/switch/ceci/tcp.json.example

This file was deleted.

4 changes: 4 additions & 0 deletions dist/rootfs/etc/openlan/switch/ceci/tcp.yaml.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
listen: 0.0.0.0:80
target:
- 192.168.100.80:80
- 192.168.100.81:80
11 changes: 11 additions & 0 deletions dist/rootfs/usr/lib/systemd/system/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Unit]
Description=OpenLAN Ceci daemon for %I
After=network.target

[Service]
Type=notify
ExecStart=/usr/bin/openlan-ceci $OPTIONS -conf /etc/openlan/switch/ceci/%i.yaml
Restart=always

[Install]
WantedBy=multi-user.target
16 changes: 0 additions & 16 deletions dist/rootfs/usr/lib/systemd/system/openlan-confd.service

This file was deleted.

13 changes: 0 additions & 13 deletions dist/rootfs/usr/lib/systemd/system/openlan-proxy.service

This file was deleted.

2 changes: 1 addition & 1 deletion dist/rootfs/usr/lib/systemd/system/openlan-switch.service
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Unit]
Description=OpenLAN Virtual Switch daemon
Description=OpenLAN Central Switch daemon
After=network.target
Requires=openlan-confd.service

Expand Down

0 comments on commit 2b2b737

Please sign in to comment.