Skip to content

Commit

Permalink
Merge pull request #16 from S-V-23-BootCamp-Team-F/feat/#13
Browse files Browse the repository at this point in the history
Feat/#13
  • Loading branch information
fnzl54 authored Jan 23, 2023
2 parents c9c7f11 + 59b5945 commit 10d8878
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 30 deletions.
4 changes: 1 addition & 3 deletions nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
FROM nginx:1.15.8

RUN rm /etc/nginx/conf.d/default.conf
COPY default.conf /etc/nginx/conf.d
# COPY localhost.key /etc/nginx/conf.d
# COPY localhost.crt /etc/nginx/conf.d
COPY default.conf /etc/nginx/conf.d
28 changes: 7 additions & 21 deletions nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ server {
return 200;
}

# nginx 작동 여부를 확인하는 html (http://cropdocter.shop/)
location /nginx {
root /usr/share/nginx/html;
index index.html index.htm;
}


location / {
proxy_pass http://django;
proxy_set_header Host $host;
Expand All @@ -21,24 +28,3 @@ server {
alias /backend/static/;
}
}


# https 적용 코드 수정 중
# server {
# listen 443 ssl;

# ssl_certificate /etc/nginx/conf.d/localhost.crt;
# ssl_certificate_key /etc/nginx/conf.d/localhost.key;

# # access_log /var/log/nginx/443_access.log;
# # error_log /var/log/nginx/443_error.log;

# location / {
# proxy_set_header Host $host:$server_port;
# proxy_pass http://django;
# proxy_redirect off;
# }
# location /static/ {
# alias /backend/static/;
# }
# }
3 changes: 0 additions & 3 deletions nginx/localhost.crt

This file was deleted.

3 changes: 0 additions & 3 deletions nginx/localhost.key

This file was deleted.

0 comments on commit 10d8878

Please sign in to comment.