nginx redirect

This commit is contained in:
Alexander Popov 2021-11-18 02:23:08 +03:00
parent f5e81ad720
commit 3d7d672977
Signed by: iiiypuk
GPG Key ID: 398FC73478D97286
2 changed files with 21 additions and 0 deletions

3
nginx/README.md Normal file
View File

@ -0,0 +1,3 @@
# nginx
- [`redirect`](redirect)

18
nginx/redirect Normal file
View File

@ -0,0 +1,18 @@
server {
listen 80;
server_name SITE_URL;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name SITE_URL;
ssl_certificate PATH_TO_PEM;
ssl_certificate_key PATH_TO_PEM;
root FOLDER;
}