Skip to content
This repository has been archived by the owner on Oct 6, 2021. It is now read-only.

[FEATURE] Detailed instructions on how to add clipboard sync to neko #73

Open
cjcharles777 opened this issue Apr 8, 2020 · 6 comments
Labels
documentation Improvements or additions to documentation

Comments

@cjcharles777
Copy link

What steps are needed to get clipboard sync working?

@TiredSysOp
Copy link

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"

@GigaFyde
Copy link
Contributor

GigaFyde commented Apr 9, 2020

Another method would be to let a reverse proxy take care of ssl

@TiredSysOp
Copy link

@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

@GigaFyde
Copy link
Contributor

GigaFyde commented Apr 9, 2020

I have neko running without ssl behind my nginx reverse proxy and clipboard sync works without issues.

@TiredSysOp
Copy link

Even easier. Nice one

@nurdism nurdism added the documentation Improvements or additions to documentation label Apr 9, 2020
@nurdism
Copy link
Owner

nurdism commented Apr 9, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation
Projects
Development

No branches or pull requests

4 participants