Created
December 27, 2020 09:30
-
-
Save Alistair1231/74a0ff31e906d0931a10ff1683bf2243 to your computer and use it in GitHub Desktop.
n.eko with m1k1o fork and nginx reverse proxy (ssl)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2.0" | |
services: | |
neko: | |
image: m1k1o/neko:latest | |
restart: always | |
shm_size: "1gb" | |
ports: | |
- "8080:8080" | |
- "59000-59100:59000-59100/udp" | |
environment: | |
DISPLAY: :99.0 | |
NEKO_PASSWORD: neko | |
NEKO_PASSWORD_ADMIN: admin | |
NEKO_BIND: :8080 | |
NEKO_EPR: 59000-59100 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .... | |
# .... | |
# .... | |
server { | |
#required for http forwarding to https | |
listen 80; | |
listen [::]:80; | |
server_name neko.domain.com; | |
return 301 https://neko.domain.com$request_uri; | |
} | |
server { | |
listen 443 ssl ; | |
listen [::]:443 ssl ; | |
server_name neko.domain.com; # managed by Certbot | |
ssl_certificate /etc/letsencrypt/live/domain.com/fullchain.pem; # managed by Certbot | |
ssl_certificate_key /etc/letsencrypt/live/domain.com/privkey.pem; # managed by Certbot | |
include snippets/ssl-params.conf; | |
client_max_body_size 40M; | |
server_tokens off; | |
root /srv/; | |
include /etc/nginx/apps/*; | |
location ~ /\.ht { | |
deny all; | |
} | |
location / { | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
proxy_set_header Host $host; | |
proxy_pass http://127.0.0.1:8080; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment