X-Git-Url: http://these/git/?a=blobdiff_plain;f=docker%2Ffederation%2Fnginx.conf;h=f787a9d2f8225d866595ba4cf633e49f8e9c5bb7;hb=5c6258390c46159c16f49295314c6519215fc6ae;hp=6d062f70b0cf1019feafd1ade621cdfd8f4f387d;hpb=b69524b498983da636b3a31f5acb74fbb1f13ab4;p=lemmy.git diff --git a/docker/federation/nginx.conf b/docker/federation/nginx.conf index 6d062f70..f787a9d2 100644 --- a/docker/federation/nginx.conf +++ b/docker/federation/nginx.conf @@ -11,21 +11,21 @@ http { # Upload limit for pictshare client_max_body_size 50M; + location /api/v1 { + proxy_pass http://lemmy-alpha:8541/api/v1; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + } location / { - proxy_pass http://lemmy-alpha:8540; + proxy_pass http://lemmy-alpha-ui:1234; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # Cuts off the trailing slash on URLs to make them valid rewrite ^(.+)/+$ $1 permanent; - - # WebSocket support - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; } - location /iframely/ { proxy_pass http://iframely:80/; proxy_set_header X-Real-IP $remote_addr; @@ -42,21 +42,21 @@ http { # Upload limit for pictshare client_max_body_size 50M; + location /api/v1 { + proxy_pass http://lemmy-beta:8551/api/v1; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + } location / { - proxy_pass http://lemmy-beta:8550; + proxy_pass http://lemmy-beta-ui:1234; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # Cuts off the trailing slash on URLs to make them valid rewrite ^(.+)/+$ $1 permanent; - - # WebSocket support - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; } - location /iframely/ { proxy_pass http://iframely:80/; proxy_set_header X-Real-IP $remote_addr; @@ -73,21 +73,21 @@ http { # Upload limit for pictshare client_max_body_size 50M; + location /api/v1 { + proxy_pass http://lemmy-gamma:8561/api/v1; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + } location / { - proxy_pass http://lemmy-gamma:8560; + proxy_pass http://lemmy-gamma-ui:1234; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # Cuts off the trailing slash on URLs to make them valid rewrite ^(.+)/+$ $1 permanent; - - # WebSocket support - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; } - location /iframely/ { proxy_pass http://iframely:80/; proxy_set_header X-Real-IP $remote_addr; @@ -104,21 +104,21 @@ http { # Upload limit for pictshare client_max_body_size 50M; + location /api/v1 { + proxy_pass http://lemmy-delta:8571/api/v1; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + } location / { - proxy_pass http://lemmy-delta:8570; + proxy_pass http://lemmy-delta-ui:1234; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # Cuts off the trailing slash on URLs to make them valid rewrite ^(.+)/+$ $1 permanent; - - # WebSocket support - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; } - location /iframely/ { proxy_pass http://iframely:80/; proxy_set_header X-Real-IP $remote_addr; @@ -135,21 +135,21 @@ http { # Upload limit for pictshare client_max_body_size 50M; + location /api/v1 { + proxy_pass http://lemmy-epsilon:8581/api/v1; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + } location / { - proxy_pass http://lemmy-epsilon:8580; + proxy_pass http://lemmy-epsilon-ui:1234; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # Cuts off the trailing slash on URLs to make them valid rewrite ^(.+)/+$ $1 permanent; - - # WebSocket support - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; } - location /iframely/ { proxy_pass http://iframely:80/; proxy_set_header X-Real-IP $remote_addr;