formations/cesi/architecture_n_tiers/ressources/exercices/ex_microbloggr_solution/services/gateway/microbloggr.conf

46 lines
675 B
Plaintext

daemon off;
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://home_page:8080/;
}
location /login {
proxy_pass http://login_page:8080/;
}
# location /profile {
# proxy_pass http://profile_page:8080/;
# }
#
# location /register {
# proxy_pass http://register_page:8080/;
# }
#
# location /statuses {
# proxy_pass http://statuses_page:8080/;
# }
}
}