generated from fahricansecer/boilerplate-fe
main
All checks were successful
HarunCAN Studio FE Deploy 🎨 / build-and-deploy (push) Successful in 14s
All checks were successful
HarunCAN Studio FE Deploy 🎨 / build-and-deploy (push) Successful in 14s
This commit is contained in:
@@ -26,5 +26,6 @@ jobs:
|
||||
docker run -d \
|
||||
--name haruncan-studio-fe-container \
|
||||
--restart always \
|
||||
--network gitea-server_gitea \
|
||||
-p 1509:80 \
|
||||
haruncan-studio-fe:latest
|
||||
10
nginx.conf
10
nginx.conf
@@ -13,9 +13,11 @@ server {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
# API Proxy - 405 hatasını engellemek için POST isteklerini backend'e yönlendirir
|
||||
# API Proxy — resolver sayesinde backend kapalıyken de nginx başlar
|
||||
location /api {
|
||||
proxy_pass http://boilerplate-app:3000;
|
||||
resolver 127.0.0.11 valid=30s ipv6=off;
|
||||
set $backend "backend-container:3000";
|
||||
proxy_pass http://$backend;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
@@ -25,7 +27,9 @@ server {
|
||||
|
||||
# Uploads Proxy
|
||||
location /uploads {
|
||||
proxy_pass http://boilerplate-app:3000;
|
||||
resolver 127.0.0.11 valid=30s ipv6=off;
|
||||
set $backend "backend-container:3000";
|
||||
proxy_pass http://$backend;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
|
||||
Reference in New Issue
Block a user