Archived
2
0

minor chages

This commit is contained in:
Craig 2020-01-25 15:14:46 +00:00
parent 56a5dcf77f
commit 1b9d36b516
7 changed files with 14 additions and 12 deletions

View File

@ -10,9 +10,8 @@ cd ../
sudo docker build -f Dockerfile -t nurdism/neko .
# 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 -p 8080:8080 -p 59000-65000:59000-65000/udp --network host --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 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 --network host --shm-size=1gb nurdism/neko:latest
# sudo docker run --network host --shm-size=1gb -it nurdism/neko:latest /bin/bash
#

View File

@ -11,7 +11,7 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& 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 libxcb-xkb-dev libxkbcommon-x11-dev \
&& apt-get -y install libxcb-xkb-dev libxkbcommon-x11-dev xclip \
#
# Create a non-root user
&& groupadd --gid $USER_GID $USERNAME \

View File

@ -6,7 +6,6 @@ $text-link: #00b0f4;
$interactive-normal: #b9bbbe;
$interactive-hover: #dcddde;
$interactive-active: #fff;
$interactive-muted: #4f545c;
$background-primary: #36393f;

View File

@ -74,7 +74,7 @@
height: 12px;
width: 12px;
border-radius: 12px;
background: $interactive-active;
background: #fff;
cursor: pointer;
}
@ -91,7 +91,7 @@
height: 12px;
width: 12px;
border-radius: 12px;
background: $interactive-active;
background: #fff;
cursor: pointer;
margin-top: -4px;
}

View File

@ -132,7 +132,7 @@
height: 12px;
width: 12px;
border-radius: 12px;
background: $interactive-active;
background: #fff;
cursor: pointer;
}
@ -149,7 +149,7 @@
height: 12px;
width: 12px;
border-radius: 12px;
background: $interactive-active;
background: #fff;
cursor: pointer;
margin-top: -4px;
}

View File

@ -239,7 +239,9 @@
@Watch('clipboard')
onClipboardChanged(clipboard: string) {
navigator.clipboard.writeText(clipboard).catch(console.error)
if (navigator.clipboard) {
navigator.clipboard.writeText(clipboard).catch(console.error)
}
}
mounted() {
@ -327,7 +329,7 @@
return
}
if (this.hosting) {
if (this.hosting && navigator.clipboard) {
navigator.clipboard
.readText()
.then(text => {

View File

@ -22,6 +22,8 @@ func New(sessions types.SessionManager, config *config.WebRTC) *WebRTCManager {
},
}
setings.SetEphemeralUDPPortRange(59000, 59100)
return &WebRTCManager{
logger: logger,
setings: setings,