-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnginx.conf
67 lines (54 loc) · 1.7 KB
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# You may add here your
# server {
# ...
# }
# statements for each of your virtual hosts to this file
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##
server {
listen 80;
server_name openrunlog.org;
rewrite ^ https://$server_name$request_uri? permanent;
# location / {
# proxy_pass http://127.0.0.1:11000/;
# include /etc/nginx/proxy.conf;
#}
}
server {
listen 443;
server_name openrunlog.org;
location / {
proxy_pass http://127.0.0.1:11000/;
include /etc/nginx/proxy.conf;
}
ssl on;
ssl_certificate /etc/nginx/ssl/orl.cert.pem;
ssl_certificate_key /etc/nginx/ssl/orl.server.nopass.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
# Remember this setting for 365 days
add_header Strict-Transport-Security max-age=31536000;
add_header X-Frame-Options DENY;
}
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
location / {
proxy_pass http://127.0.0.1:9181/;
include /etc/nginx/proxy.conf;
}
# Make site accessible from http://localhost/
server_name localhost;
server_name vrael.davidwilemski.com;
}