Skip to content

Commit

Permalink
new server config
Browse files Browse the repository at this point in the history
  • Loading branch information
chronis10 committed Jun 3, 2024
1 parent 71f3aa8 commit bdf83f4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: SSH and Deploy
run: |
ssh -i ~/.ssh/id_rsa ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }} << 'EOF'
cd /home/christoclis/fossbot-platform
cd /fossbot-platform
sudo git fetch origin
sudo git reset --hard origin/master
sudo rm -f .env
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions docker-compose-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ services:
- "443:443"
volumes:
- ./front-end/nginx.conf:/etc/nginx/conf.d/default.conf
- /etc/letsencrypt/live/fossbot-platform.duckdns.org/fullchain.pem:/etc/letsencrypt/live/fossbot-platform.duckdns.org/fullchain.pem
- /etc/letsencrypt/live/fossbot-platform.duckdns.org/privkey.pem:/etc/letsencrypt/live/fossbot-platform.duckdns.org/privkey.pem
- /etc/letsencrypt/live/fossbot.gr/fullchain.pem:/etc/letsencrypt/live/fossbot.gr/fullchain.pem
- /etc/letsencrypt/live/fossbot.gr/privkey.pem:/etc/letsencrypt/live/fossbot.gr/privkey.pem
depends_on:
- backend
db:
Expand Down
15 changes: 0 additions & 15 deletions front-end/nginx-initial.conf

This file was deleted.

8 changes: 4 additions & 4 deletions front-end/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
server {
listen 80;
server_name fossbot-platform.duckdns.org;
server_name fossbot.gr;

# Redirect all HTTP traffic to HTTPS
location / {
Expand All @@ -10,10 +10,10 @@ server {

server {
listen 443 ssl;
server_name fossbot-platform.duckdns.org;
server_name fossbot.gr;

ssl_certificate /etc/letsencrypt/live/fossbot-platform.duckdns.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/fossbot-platform.duckdns.org/privkey.pem;
ssl_certificate /etc/letsencrypt/live/fossbot.gr/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/fossbot.gr/privkey.pem;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;

Expand Down

0 comments on commit bdf83f4

Please sign in to comment.