Merge pull request #1360 from bookwyrm-social/nginx-www-redirect

Use non-www domain canonically
This commit is contained in:
Mouse Reeve 2021-09-05 14:43:25 -07:00 committed by GitHub
commit 4fea674d56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,6 +24,10 @@ server {
# listen 443 ssl http2; # listen 443 ssl http2;
# #
# server_name your-domain.com; # server_name your-domain.com;
# if ($host != "you-domain.com") {
# return 301 $scheme://your-domain.com$request_uri;
# }
# #
# # SSL code # # SSL code
# ssl_certificate /etc/nginx/ssl/live/your-domain.com/fullchain.pem; # ssl_certificate /etc/nginx/ssl/live/your-domain.com/fullchain.pem;