Welcome! Log In Create A New Profile

Advanced

nginx and qnap ipkg - help

Posted by explodedk 
nginx and qnap ipkg - help
September 01, 2012 04:45AM
hey. i've recently installed nginx on my Qnap TS-212 nas, but I have two small problem.

i can't get ssh to work - getting this error

nginx: [emerg] SSL_CTX_use_certificate_chain_file("/opt/etc/nginx/cert.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory error:20074002:BIO routines:FILE_CTRL:system lib error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib)


my nginx.conf is like this:

user nobody;
worker_processes 4;
pid /tmp/nginx.pid;

events {
worker_connections 768;
multi_accept on;
}

http {

sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /share/HDA_DATA/.qpkg/Optware/etc/nginx/mime.types;
default_type application/octet-stream;
access_log /tmp/access.log;
error_log /tmp/error.log;
server {
listen 5000;
server_name localhost;

root /share/HDA_DATA/web_new;

ssl on;
ssl_certificate cert.pem;
ssl_certificate_key cert.key;

ssl_session_timeout 5m;

ssl_protocols SSLv3 TLSv1;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
ssl_prefer_server_ciphers on;


location / {
autoindex on;
auth_basic "Restricted";
auth_basic_user_file /share/HDA_DATA/.qpkg/Optware/etc/.htpasswd;
}
}

}


also there is a limit of max 50 chars - i know it can be compiled with maxlength 150 etc. but i've got no clue how to do it for the NAS / Arm processor.

anyone care to tech a noob ;)



Edited 1 time(s). Last edit at 09/01/2012 04:45AM by explodedk.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 251
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready