25 lines
430 B
Nginx Configuration File
25 lines
430 B
Nginx Configuration File
|
events { }
|
||
|
|
||
|
http {
|
||
|
server {
|
||
|
listen 80;
|
||
|
|
||
|
location / {
|
||
|
return 301 https://$host$request_uri;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
listen 443 ssl;
|
||
|
|
||
|
http2 on;
|
||
|
|
||
|
ssl_certificate /etc/nginx/certificates/server.crt;
|
||
|
ssl_certificate_key /etc/nginx/certificates/server.key;
|
||
|
|
||
|
location / {
|
||
|
root /usr/share/nginx/html;
|
||
|
index index.html;
|
||
|
}
|
||
|
}
|
||
|
}
|