Created
December 16, 2018 12:12
-
-
Save masihtehrani/28363784d0342d9618ad5b130f4dd767 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
upstream instagram_service { | |
server localhost:9500; | |
} | |
upstream sazitofront { | |
server localhost:5440; | |
} | |
#upstream backend { | |
# server localhost:3000; | |
#} | |
upstream backend { | |
server localhost:8845; | |
} | |
upstream frontend { | |
server localhost:4000; | |
} | |
upstream client { | |
server localhost:5000; | |
} | |
upstream mellat_payment { | |
server localhost:6500; | |
} | |
upstream accountmanager { | |
server localhost:5445; | |
} | |
upstream financialapi{ | |
server localhost:7445; | |
} | |
upstream sazitoblog{ | |
server localhost:8745; | |
} | |
upstream commercialfileapi{ | |
server localhost:8545; | |
} | |
server { | |
listen 80; | |
server_name shopservice.accountmanager; | |
location / { | |
proxy_pass http://accountmanager; | |
} | |
} | |
server { | |
listen 80; | |
server_name shopservice.instagram; | |
location / { | |
proxy_pass http://instagram_service; | |
} | |
} | |
server { | |
listen 80; | |
server_name sazito.front; | |
location / { | |
proxy_pass http://sazitofront; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $remote_addr; | |
} | |
location /api { | |
proxy_pass http://accountmanager; | |
} | |
location /blogapi { | |
proxy_pass http://sazitoblog; | |
} | |
} | |
server { | |
listen 80; | |
server_name shopservice.admin; | |
location ~ ^/uploads/ { | |
root /Users/mahm0ud/Develop/golang/src/sazito_shop; | |
autoindex on; | |
} | |
location / { | |
proxy_pass http://frontend; | |
} | |
location /api { | |
proxy_pass http://backend; | |
} | |
location /instagram { | |
rewrite ^/instagram/?(.*)$ /$1 break; | |
proxy_pass http://instagram_service; | |
} | |
} | |
#server { | |
# listen 80; | |
# server_name shopservice.client; | |
# | |
# location /admin/ { | |
# proxy_pass http://frontend; | |
# proxy_set_header Host $host; | |
# proxy_set_header X-Forwarded-For $remote_addr; | |
# } | |
# | |
# location /instagram { | |
# rewrite ^/instagram/?(.*)$ /$1 break; | |
# proxy_pass http://instagram_service; | |
# } | |
# | |
# location ~ ^/uploads/ { | |
# root /Users/reza/shopservice/public; | |
# autoindex on; | |
# } | |
# | |
# location ~ ^/static_assets/ { | |
# root /Users/reza/shopservice/public; | |
# autoindex on; | |
# } | |
# | |
# | |
# location / { | |
# proxy_pass http://client; | |
# proxy_set_header Host $host; | |
# proxy_set_header X-Forwarded-For $remote_addr; | |
# } | |
# | |
# location /api { | |
# proxy_pass http://backend; | |
# } | |
# | |
# location /socket { | |
# proxy_pass http://backend; | |
# proxy_http_version 1.1; | |
# proxy_set_header Upgrade $http_upgrade; | |
# proxy_set_header Connection "upgrade"; | |
# } | |
#} | |
server { | |
listen 80; | |
server_name shopservice.client; | |
location /admin/ { | |
proxy_pass http://frontend; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $remote_addr; | |
} | |
location /instagram { | |
rewrite ^/instagram/?(.*)$ /$1 break; | |
proxy_pass http://instagram_service; | |
} | |
location /uploads { | |
proxy_pass http://backend; | |
} | |
location ~ ^/static_assets/ { | |
root /var/www/html/instagshop_shop_service/shop_service/public; | |
autoindex on; | |
} | |
location / { | |
proxy_pass http://client; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $remote_addr; | |
} | |
location /socket { | |
proxy_pass http://backend; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
} | |
location /api { | |
proxy_pass http://backend; | |
} | |
} | |
server { | |
listen 80; | |
server_name mellatpayment.local; | |
location / { | |
proxy_pass http://mellat_payment; | |
} | |
} | |
server { | |
listen 80; | |
server_name shopservice.financial; | |
location / { | |
proxy_pass http://financialapi; | |
} | |
} | |
server { | |
listen 80; | |
server_name shopservice.commercial commercialdownload.shopservice.client; | |
location / { | |
proxy_pass http://commercialfileapi; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment