redirect http to https

This commit is contained in:
mozzy11 committed 2023-01-17 10:04:06 +03:00
1 parent 0f4f38fd20
commit 0b6b85e018
2 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ services:
container_name: nginx
restart: always
ports:
# - 80:80
- 80:80
- 443:443
volumes:
- certs-vol:/etc/nginx/certs/
+5
View File
@@ -1,3 +1,8 @@
server {
listen 80;
server_name localhost;
return 301 https://localhost$request_uri;
}
server {