Skip to content

Commit

Permalink
chore: nginx ssl 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hseong3243 committed Jan 17, 2024
1 parent b885996 commit 7e32b0f
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions scripts/data/nginx/backend.conf
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
server {
listen 80;
server_name shoutlink.me;
access_log logs/backend/access.log main;
root /usr/share/nginx/html;

location /api {
proxy_pass http://backend;
location / {
return 301 https://$server_name$request_uri;
}

# location /.well-known/acme-challenge/ {
# root /var/www/certbot;
# }
}

server {
listen 443 ssl;
server_name shoutlink.me;

location / {
proxy_pass http://backend;
}

ssl_certificate /etc/letsencrypt/live/shoutlink.me/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/shoutlink.me/privkey.pem;
ssl_prefer_server_ciphers on;
}

upstream backend {
Expand Down

0 comments on commit 7e32b0f

Please sign in to comment.