Skip to content

Commit

Permalink
New changes
Browse files Browse the repository at this point in the history
  • Loading branch information
maryanchuk04 committed Sep 15, 2024
1 parent 49fb8ef commit eda6333
Show file tree
Hide file tree
Showing 11 changed files with 87 additions and 467 deletions.
35 changes: 35 additions & 0 deletions main.nginx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
server {
listen 80;
server_name e-profspilka.com.ua;

return 301 https://$host$request_uri;
}

server {
listen 443 ssl;
listen [::]:443 ssl;

server_name e-profspilka.com.ua;

root /var/www/html;
index index.html;

location / {
if ($uri ~* "^/admin-panel") {
rewrite ^/admin-panel(.*)$ /admin/index.html break;
}

try_files $uri /index.html;
}

location /api/ {
proxy_pass http://localhost:5000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}

ssl_certificate /etc/letsencrypt/live/e-profspilka.com.ua/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/e-profspilka.com.ua/privkey.pem;
}
Loading

0 comments on commit eda6333

Please sign in to comment.