Skip to content

Commit bc87c10

Browse files
committed
Add HTTP to HTTPS redirect to nginx configuration
A new server block was added to redirect all HTTP traffic to the HTTPS version of the site. This ensures secure connections by default and eliminates potential insecure access points.
1 parent bc63c8a commit bc87c10

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nginx.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
server {
2+
listen 80;
3+
server_name intellibank.duckdns.org 24.144.109.220;
4+
return 301 https://intellibank.duckdns.org$request_uri;
5+
}
6+
17
server {
28
listen 443 ssl;
39
server_name intellibank.duckdns.org 24.144.109.220;

0 commit comments

Comments
 (0)