mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-04-27 14:57:40 +00:00
add site config for nginx
This commit is contained in:
parent
422f0c7566
commit
160952965d
1 changed files with 39 additions and 0 deletions
39
nginx.conf
Normal file
39
nginx.conf
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
server {
|
||||||
|
listen 443;
|
||||||
|
#listen [::]:443 default_server ipv6only=on; ## listen for ipv6
|
||||||
|
server_name ocean.samhuri.net;
|
||||||
|
|
||||||
|
ssl on;
|
||||||
|
ssl_certificate cert.pem;
|
||||||
|
ssl_certificate_key cert.key;
|
||||||
|
ssl_session_timeout 5m;
|
||||||
|
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
||||||
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
||||||
|
ssl_prefer_server_ciphers on;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://localhost:6706;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 5000;
|
||||||
|
#listen [::]:443 default_server ipv6only=on; ## listen for ipv6
|
||||||
|
server_name ocean.samhuri.net;
|
||||||
|
|
||||||
|
ssl on;
|
||||||
|
ssl_certificate cert.pem;
|
||||||
|
ssl_certificate_key cert.key;
|
||||||
|
ssl_session_timeout 5m;
|
||||||
|
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
||||||
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
||||||
|
ssl_prefer_server_ciphers on;
|
||||||
|
|
||||||
|
root /home/sjs/samhuri.net/www;
|
||||||
|
index index.html;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ $uri/index.html;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue