Merge pull request 'httpsImplement' (#4) from httpsImplement into main
Reviewed-on: http://203.171.20.94:3000/PhuongDM/TTMT.ManageWebGUI/pulls/4
This commit is contained in:
commit
dd3fd1403a
|
|
@ -20,6 +20,6 @@ COPY --from=development /app/dist /usr/share/nginx/html
|
||||||
|
|
||||||
COPY nginx/nginx.conf /etc/nginx/conf.d/default.conf
|
COPY nginx/nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80 443
|
||||||
|
|
||||||
ENTRYPOINT [ "nginx", "-g", "daemon off;" ]
|
ENTRYPOINT [ "nginx", "-g", "daemon off;" ]
|
||||||
|
|
@ -5,6 +5,16 @@
|
||||||
# }
|
# }
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
return 301 https://$host$request_uri; # Redirect HTTP sang HTTPS
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
server{
|
||||||
|
listen 443 ssl;
|
||||||
|
server_name comp.soict.io;
|
||||||
|
ssl_certificate /etc/nginx/ssl/nginx-selfsigned.crt;
|
||||||
|
ssl_certificate_key /etc/nginx/ssl/nginx-selfsigned.key;
|
||||||
|
|
||||||
set $backend_server 172.18.10.8:8080;
|
set $backend_server 172.18.10.8:8080;
|
||||||
|
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user