mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
some tweeks
This commit is contained in:
4
.docker/build.sh
Normal file → Executable file
4
.docker/build.sh
Normal file → Executable file
@ -7,4 +7,6 @@ cd ../client
|
||||
npm install && npm run build
|
||||
|
||||
cd ../
|
||||
docker build -f Dockerfile -t neko .
|
||||
sudo docker build -f Dockerfile -t neko .
|
||||
|
||||
# sudo docker run -p 8080:8080 --shm-size=2gb neko:latest
|
@ -1,4 +1,7 @@
|
||||
unload-module module-suspend-on-idle
|
||||
#!/usr/bin/pulseaudio -nF
|
||||
|
||||
# Allow pulse audio to be accessed via TCP (from localhost only), to allow other users to access the virtual devices
|
||||
load-module module-native-protocol-unix socket=/tmp/pulseaudio.socket auth-anonymous=1
|
||||
load-module module-native-protocol-unix socket=/tmp/pulseaudio.socket auth-anonymous=1
|
||||
|
||||
### Make sure we always have a sink around, even if it is a null sink.
|
||||
load-module module-always-sink
|
5
.docker/entrypoint.sh
Normal file → Executable file
5
.docker/entrypoint.sh
Normal file → Executable file
@ -1,7 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Starting dbus"
|
||||
/etc/init.d/dbus start
|
||||
sudo /etc/init.d/dbus start
|
||||
|
||||
echo "Starting supervisord"
|
||||
su -p -l $NEKO_USER -c '/usr/bin/supervisord -c /etc/neko/supervisord.conf' -s /bin/bash
|
||||
/usr/bin/supervisord -c /etc/neko/supervisord.conf
|
@ -3,10 +3,40 @@
|
||||
"DisableAppUpdate": true,
|
||||
"DisableTelemetry": true,
|
||||
"DontCheckDefaultBrowser": true,
|
||||
"DisableFirefoxAccounts": true,
|
||||
"DisablePrivateBrowsing": true,
|
||||
"DisableProfileImport": true,
|
||||
"BlockAboutConfig": true,
|
||||
"BlockAboutProfiles": true,
|
||||
"BlockAboutSupport": true,
|
||||
"OverrideFirstRunPage": "",
|
||||
"OfferToSaveLogins": false,
|
||||
"PromptForDownloadLocation":false,
|
||||
"DisableSetDesktopBackground":false,
|
||||
"DisableDeveloperTools":false,
|
||||
"DisableFeedbackCommands":false,
|
||||
"DisableFirefoxScreenshots":false,
|
||||
"DisableProfileRefresh":false,
|
||||
"OfferToSaveLoginsDefault":false,
|
||||
"PasswordManagerEnabled":false,
|
||||
"SanitizeOnShutdown": {
|
||||
"Cache": true,
|
||||
"Cookies": true,
|
||||
"Downloads": true,
|
||||
"FormData": true,
|
||||
"History": true,
|
||||
"Sessions": true,
|
||||
"SiteSettings": true,
|
||||
"OfflineApps": true
|
||||
},
|
||||
"FirefoxHome": {
|
||||
"Search": true,
|
||||
"TopSites": true,
|
||||
"Highlights": false,
|
||||
"Pocket": false,
|
||||
"Snippets": false,
|
||||
"Locked": false
|
||||
},
|
||||
"ExtensionSettings": {
|
||||
"uBlock0@raymondhill.net": {
|
||||
"installation_mode": "force_installed",
|
||||
@ -20,6 +50,14 @@
|
||||
"Homepage": {
|
||||
"Additional": [],
|
||||
"StartPage": "none"
|
||||
}
|
||||
},
|
||||
"Bookmarks": [
|
||||
{
|
||||
"Title": "9 Anime",
|
||||
"URL": "https://9anime.xyz/",
|
||||
"Favicon": "https://9anime.xyz/favicon.png",
|
||||
"Placement": "toolbar"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@ -1,18 +1,17 @@
|
||||
[supervisord]
|
||||
environment=PULSE_SERVER="unix:/tmp/pulseaudio.socket",DISPLAY=":%(ENV_NEKO_DISPLAY)s"
|
||||
nodaemon=true
|
||||
pidfile=/var/run/supervisord.pid
|
||||
logfile=/dev/null
|
||||
logfile_maxbytes=0
|
||||
loglevel=debug
|
||||
|
||||
[program:xvfb]
|
||||
command=/usr/bin/Xvfb :%(ENV_NEKO_DISPLAY)s -screen 0 %(ENV_NEKO_WIDTH)sx%(ENV_NEKO_HEIGHT)sx24+32
|
||||
redirect_stderr=true
|
||||
autorestart=true
|
||||
priority=300
|
||||
|
||||
[program:pulseaudio]
|
||||
command=/usr/bin/pulseaudio --disallow-module-loading -vvvv --disallow-exit --exit-idle-time=-1 --file=/etc/neko/pulseaudio.pa
|
||||
command=/usr/bin/pulseaudio --disallow-module-loading -vvvv --disallow-exit --exit-idle-time=-1
|
||||
autorestart=true
|
||||
priority=300
|
||||
|
||||
@ -27,6 +26,6 @@ autorestart=true
|
||||
priority=400
|
||||
|
||||
[program:neko]
|
||||
command=/usr/bin/neko serve -d --static "/var/www"
|
||||
command=/usr/bin/neko serve --static "/var/www"
|
||||
autorestart=true
|
||||
priority=500
|
||||
priority=800
|
@ -1,7 +1,6 @@
|
||||
[supervisord]
|
||||
environment=PULSE_SERVER="unix:/tmp/pulseaudio.socket",DISPLAY=":%(ENV_NEKO_DISPLAY)s"
|
||||
nodaemon=true
|
||||
pidfile=/var/run/supervisord.pid
|
||||
#logfile=/dev/null
|
||||
#logfile_maxbytes=0
|
||||
loglevel=debug
|
||||
@ -13,7 +12,7 @@ autorestart=true
|
||||
priority=300
|
||||
|
||||
[program:pulseaudio]
|
||||
command=/usr/bin/pulseaudio --disallow-module-loading -vvvv --disallow-exit --exit-idle-time=-1 --file=/etc/neko/pulseaudio.pa
|
||||
command=/usr/bin/pulseaudio --disallow-module-loading -vvvv --disallow-exit --exit-idle-time=-1
|
||||
autorestart=true
|
||||
priority=300
|
||||
|
||||
|
@ -6,8 +6,9 @@ sudo mkdir -p /var/run/dbus /etc/neko
|
||||
sudo /etc/init.d/dbus start
|
||||
|
||||
sudo cp supervisord.conf /etc/neko/supervisord.conf
|
||||
sudo cp pulseaudio.pa /etc/neko/pulseaudio.pa
|
||||
sudo cp openbox.xml /etc/neko/openbox.xml
|
||||
|
||||
sudo cp default.pa /etc/pulse/default.pa
|
||||
sudo cp policies.json /usr/lib/firefox-esr/distribution/policies.json
|
||||
|
||||
if [ ! -f /usr/lib/firefox-esr/distribution/extensions/uBlock0@raymondhill.net.xpi ]; then
|
||||
|
Reference in New Issue
Block a user