rr-dev/server/nginx.conf

25 lines
430 B
Nginx Configuration File
Raw Permalink Normal View History

2023-10-11 20:58:22 +00:00
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;
}
}
}