New nginx config after installing the GeoIP2 module: including module, uncommenting geoip blocks, adding lat and long lookups
This commit is contained in:
commit
e56cb3a793
22
default/_.conf
Normal file
22
default/_.conf
Normal file
@ -0,0 +1,22 @@
|
||||
server {
|
||||
listen 443 ssl default_server;
|
||||
listen [::]:443;
|
||||
server_name _;
|
||||
return 301 https://www.theschricks.com$request_uri;
|
||||
root /var/www/theschricks.com;
|
||||
index index.html;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/theschricks.com/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/theschricks.com/privkey.pem; # managed by Certbot
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||||
}
|
||||
|
||||
#HTTP
|
||||
server {
|
||||
listen 80 default_server deferred;
|
||||
listen [::]:80;
|
||||
server_name _;
|
||||
return 301 https://www.theschricks.com$request_uri;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user