-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
49fb8ef
commit eda6333
Showing
11 changed files
with
87 additions
and
467 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
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; | ||
} |
Oops, something went wrong.