我刚刚使用Nginx在运行Ubuntu 16.04的远程服务器上安装了Neo4j。在进行初始测试时,我已经设置了nginx来使浏览器在Internet上可见:通过HTTPS在端口80上侦听端口7474内部的情况:
server {
server_name neo.examplecom;
location / {
proxy_pass http://localhost:7474;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/neo.example.com/fullchain.pem; # mana$
ssl_certificate_key /etc/letsencrypt/live/neo.example.com/privkey.pem; # ma$
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = neo.example.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
server_name neo.example.com;
return 404; # managed by Certbot
}
我还使用ufw
打开了螺栓的端口7687
。
这是一个全新的空数据库,因此,毫无疑问流量很大。但是,每次尝试使用默认密码进行连接时,都会出现红色的ServiceUnavailable: Failed to establish connection in 5000ms
错误。
如果是问题所在,我尝试删除/var/lib/neo4j/data/dbms/auth
处的文件,但没有任何改变。
是否有更好的设置Neo4j浏览器的方法,或者我有忽略的事情吗?