[FEATURE] Detailed instructions on how to add clipboard sync to neko
cjcharles777 opened this issue · 6 comments
What steps are needed to get clipboard sync working?
Modify or add the following in your compose file. This allows docker to access a folder called certs which could be in the same directory as the compose file and exposes it to the image. The key and cert variables "enable" the clipboard function if provided with appropriate certificate and key. Generate keys with certbot and copy them to a folder accessible to neko. You can try mounting them directly but I had permissions issues.
volumes:
- "./certs:/certs"
environment:
NEKO_KEY: /certs/privkey.pem
NEKO_CERT: /certs/fullchain.pem
Here's my full compose as an example:
version: "2.0"
services:
neko:
image: nurdism/neko:chromium
environment:
LANG: en_US.UTF-8
restart: always
shm_size: "4gb"
cap_add:
- "SYS_ADMIN"
ports:
- "8080:8080"
- "59000-59100:59000-59100/udp"
volumes:
- "./certs:/certs"
environment:
DISPLAY: :99.0
NEKO_PASSWORD: secret
NEKO_PASSWORD_ADMIN: secret
NEKO_BIND: :8080
NEKO_KEY: /certs/privkey.pem
NEKO_CERT: /certs/fullchain.pem
NEKO_IP: 144.91.114.198
NEKO_EPR: "59000-59100"
Another method would be to let a reverse proxy take care of ssl
@GigaFyde Would that work? nginx may not communicate to neko over ssl if not configured to. I'm basing my assumptions on what I've read in the documentation. As I've configured neko and nginx to use ssl
I have neko running without ssl behind my nginx reverse proxy and clipboard sync works without issues.
Even easier. Nice one
clipboard sync is mainly a client feature, some browsers have certain requirements, ssl/https being one of them. Use chrome for best experience clipboard sync.