Skip to content

Commit

Permalink
ci: setup deployment for a vps
Browse files Browse the repository at this point in the history
  • Loading branch information
neumanf committed Aug 26, 2024
1 parent 47fd963 commit 626fb8f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
16 changes: 8 additions & 8 deletions infra/nginx/conf/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ server {
listen 443 ssl;
server_name _;

ssl_certificate /etc/nginx/ssl/live/mally.neumanf.com/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/live/mally.neumanf.com/privkey.pem;
ssl_certificate /etc/letsencrypt/live/mally.neumanf.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mally.neumanf.com/privkey.pem;

return 404;
}
Expand All @@ -30,8 +30,8 @@ server {
server_name mally.neumanf.com;
charset utf-8;

ssl_certificate /etc/nginx/ssl/live/mally.neumanf.com/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/live/mally.neumanf.com/privkey.pem;
ssl_certificate /etc/letsencrypt/live/mally.neumanf.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mally.neumanf.com/privkey.pem;

location /.well-known/acme-challenge/ {
allow all;
Expand All @@ -50,8 +50,8 @@ server {
server_name api.mally.neumanf.com;
charset utf-8;

ssl_certificate /etc/nginx/ssl/live/mally.neumanf.com/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/live/mally.neumanf.com/privkey.pem;
ssl_certificate /etc/letsencrypt/live/mally.neumanf.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mally.neumanf.com/privkey.pem;

location /.well-known/acme-challenge/ {
allow all;
Expand All @@ -70,8 +70,8 @@ server {
server_name auth.mally.neumanf.com;
charset utf-8;

ssl_certificate /etc/nginx/ssl/live/mally.neumanf.com/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/live/mally.neumanf.com/privkey.pem;
ssl_certificate /etc/letsencrypt/live/mally.neumanf.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mally.neumanf.com/privkey.pem;

location /.well-known/acme-challenge/ {
allow all;
Expand Down
4 changes: 0 additions & 4 deletions infra/nginx/scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ if [ ! -f /etc/letsencrypt/live/mally.neumanf.com/fullchain.pem ]; then
-d mally.neumanf.com -d api.mally.neumanf.com -d auth.mally.neumanf.com
fi

# Copy the certificate and key to the Nginx ssl directory
cp -r /etc/letsencrypt/live /etc/nginx/ssl/
cp -r /etc/letsencrypt/live /etc/nginx/ssl/

# Replace Nginx configuration with the SSL version
cp /conf/nginx.conf /etc/nginx/conf.d/default.conf

Expand Down

0 comments on commit 626fb8f

Please sign in to comment.