add json func

This commit is contained in:
2022-04-03 09:04:24 +03:00
parent 909cd73762
commit a42013753a
39 changed files with 83 additions and 0 deletions

3
~/nginx/README.md Normal file
View File

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

24
~/nginx/redirect.conf Normal file
View File

@ -0,0 +1,24 @@
server {
listen 80;
server_name SITE_URL;
location /robots.txt {
root FOLDER;
}
location / {
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;
}