23 lines
597 B
Plaintext
23 lines
597 B
Plaintext
server {
|
|
listen 9000 default ssl;
|
|
server_name _;
|
|
root /repo;
|
|
|
|
ssl_certificate /etc/nginx/certs/repo.crt;
|
|
ssl_certificate_key /etc/nginx/certs/repo.key;
|
|
ssl_protocols TLSv1.2;
|
|
ssl_ciphers EECDH:+AES256:-3DES:!RSA+AES:!RSA+3DES:!NULL:!RC4;
|
|
ssl_prefer_server_ciphers on;
|
|
|
|
error_page 497 301 =307 https://$host:$server_port$request_uri;
|
|
|
|
location / {
|
|
charset utf-8;
|
|
autoindex on;
|
|
autoindex_exact_size off;
|
|
autoindex_localtime on;
|
|
# auth_basic "Needs to auth";
|
|
# auth_basic_user_file /etc/nginx/.htpasswd;
|
|
}
|
|
}
|