-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create
content/nginx/cupick.ddns.net
를 서버와 동기화
- Loading branch information
1 parent
0b167b6
commit 9823d77
Showing
4 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
server { | ||
|
||
server_name cupick.ddns.net; | ||
|
||
location / { | ||
|
||
# Connect to ReadReplica RDS | ||
if ($request_method = GET) { | ||
|
||
proxy_pass http://127.0.0.1:3001; | ||
} | ||
|
||
# Connect to Origin RDS | ||
proxy_pass http://127.0.0.1:3000; | ||
} | ||
|
||
listen [::]:443 ssl ipv6only=on; # managed by Certbot | ||
listen 443 ssl; # managed by Certbot | ||
|
||
ssl_certificate /etc/letsencrypt/live/cupick.ddns.net/fullchain.pem; # managed by Certbot | ||
ssl_certificate_key /etc/letsencrypt/live/cupick.ddns.net/privkey.pem; # managed by Certbot | ||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot | ||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot | ||
|
||
} | ||
|
||
server { | ||
if ($host = cupick.ddns.net) { | ||
return 301 https://$host$request_uri; | ||
} # managed by Certbot | ||
|
||
|
||
|
||
listen 80; | ||
listen [::]:80; | ||
|
||
server_name cupick.ddns.net; | ||
|
||
#location / { | ||
# return 301 https://cupick.ddns.net$request_uri; | ||
#} | ||
return 404; # managed by Certbot | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters