Skip to content

Commit

Permalink
Updates openresty config
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmerfield committed Feb 29, 2024
1 parent b4b2928 commit 4b286f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/openresty/development_server.conf
Expand Up @@ -25,8 +25,14 @@ http {
keepalive 64;
}

# redirect all http requests to https
server {
listen 80 default_server;
server_name _;
return 301 https://$host$request_uri;
}

server {
listen 443 ssl default_server;

ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt;
Expand Down

0 comments on commit 4b286f9

Please sign in to comment.