mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
minor chages
This commit is contained in:
parent
56a5dcf77f
commit
1b9d36b516
@ -10,9 +10,8 @@ cd ../
|
|||||||
sudo docker build -f Dockerfile -t nurdism/neko .
|
sudo docker build -f Dockerfile -t nurdism/neko .
|
||||||
|
|
||||||
# sudo docker push nurdism/neko:latest
|
# sudo docker push nurdism/neko:latest
|
||||||
# sudo docker run -e NEKO_BIND='0.0.0.0:9000' --shm-size=1gb nurdism/neko:latest
|
# sudo docker run -e NEKO_BIND='0.0.0.0:9000' --network host --shm-size=1gb nurdism/neko:latest
|
||||||
# sudo docker run -p 8080:8080 -p 59000-65000:59000-65000/udp --network host --shm-size=1gb nurdism/neko:latest
|
# sudo docker run -p 9000:8080 -p 59000-59100:59000-59100/udp --shm-size=2gb nurdism/neko:latest
|
||||||
# sudo docker run -p 8080:8080 --shm-size=1gb nurdism/neko:latest
|
# sudo docker run -p 8080:8080 --shm-size=1gb nurdism/neko:latest
|
||||||
# sudo docker run --network host --shm-size=1gb nurdism/neko:latest
|
# sudo docker run --network host --shm-size=1gb nurdism/neko:latest
|
||||||
# sudo docker run --network host --shm-size=1gb -it nurdism/neko:latest /bin/bash
|
# sudo docker run --network host --shm-size=1gb -it nurdism/neko:latest /bin/bash
|
||||||
#
|
|
@ -11,7 +11,7 @@ ENV DEBIAN_FRONTEND=noninteractive
|
|||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get -y install curl apt-utils supervisor openbox dbus-x11 xvfb pulseaudio firefox-esr \
|
&& apt-get -y install curl apt-utils supervisor openbox dbus-x11 xvfb pulseaudio firefox-esr \
|
||||||
&& apt-get -y install gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-pulseaudio \
|
&& apt-get -y install gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-pulseaudio \
|
||||||
&& apt-get -y install libxcb-xkb-dev libxkbcommon-x11-dev \
|
&& apt-get -y install libxcb-xkb-dev libxkbcommon-x11-dev xclip \
|
||||||
#
|
#
|
||||||
# Create a non-root user
|
# Create a non-root user
|
||||||
&& groupadd --gid $USER_GID $USERNAME \
|
&& groupadd --gid $USER_GID $USERNAME \
|
||||||
|
@ -6,7 +6,6 @@ $text-link: #00b0f4;
|
|||||||
|
|
||||||
$interactive-normal: #b9bbbe;
|
$interactive-normal: #b9bbbe;
|
||||||
$interactive-hover: #dcddde;
|
$interactive-hover: #dcddde;
|
||||||
$interactive-active: #fff;
|
|
||||||
$interactive-muted: #4f545c;
|
$interactive-muted: #4f545c;
|
||||||
|
|
||||||
$background-primary: #36393f;
|
$background-primary: #36393f;
|
||||||
|
@ -74,7 +74,7 @@
|
|||||||
height: 12px;
|
height: 12px;
|
||||||
width: 12px;
|
width: 12px;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
background: $interactive-active;
|
background: #fff;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -91,7 +91,7 @@
|
|||||||
height: 12px;
|
height: 12px;
|
||||||
width: 12px;
|
width: 12px;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
background: $interactive-active;
|
background: #fff;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin-top: -4px;
|
margin-top: -4px;
|
||||||
}
|
}
|
||||||
|
@ -132,7 +132,7 @@
|
|||||||
height: 12px;
|
height: 12px;
|
||||||
width: 12px;
|
width: 12px;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
background: $interactive-active;
|
background: #fff;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -149,7 +149,7 @@
|
|||||||
height: 12px;
|
height: 12px;
|
||||||
width: 12px;
|
width: 12px;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
background: $interactive-active;
|
background: #fff;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin-top: -4px;
|
margin-top: -4px;
|
||||||
}
|
}
|
||||||
|
@ -239,8 +239,10 @@
|
|||||||
|
|
||||||
@Watch('clipboard')
|
@Watch('clipboard')
|
||||||
onClipboardChanged(clipboard: string) {
|
onClipboardChanged(clipboard: string) {
|
||||||
|
if (navigator.clipboard) {
|
||||||
navigator.clipboard.writeText(clipboard).catch(console.error)
|
navigator.clipboard.writeText(clipboard).catch(console.error)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this._container.addEventListener('resize', this.onResise)
|
this._container.addEventListener('resize', this.onResise)
|
||||||
@ -327,7 +329,7 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.hosting) {
|
if (this.hosting && navigator.clipboard) {
|
||||||
navigator.clipboard
|
navigator.clipboard
|
||||||
.readText()
|
.readText()
|
||||||
.then(text => {
|
.then(text => {
|
||||||
|
@ -22,6 +22,8 @@ func New(sessions types.SessionManager, config *config.WebRTC) *WebRTCManager {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setings.SetEphemeralUDPPortRange(59000, 59100)
|
||||||
|
|
||||||
return &WebRTCManager{
|
return &WebRTCManager{
|
||||||
logger: logger,
|
logger: logger,
|
||||||
setings: setings,
|
setings: setings,
|
||||||
|
Loading…
Reference in New Issue
Block a user