2020-03-28 16:30:59 +00:00
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
2020-09-24 13:50:38 +00:00
|
|
|
upstream lemmy-alpha {
|
|
|
|
server "lemmy-alpha:8541";
|
|
|
|
}
|
|
|
|
upstream lemmy-alpha-ui {
|
|
|
|
server "lemmy-alpha-ui:1234";
|
|
|
|
}
|
2020-03-28 16:30:59 +00:00
|
|
|
server {
|
|
|
|
listen 8540;
|
|
|
|
server_name 127.0.0.1;
|
2020-04-14 15:47:55 +00:00
|
|
|
access_log off;
|
2020-03-28 16:30:59 +00:00
|
|
|
|
|
|
|
# Upload limit for pictshare
|
|
|
|
client_max_body_size 50M;
|
|
|
|
|
2020-09-24 13:50:38 +00:00
|
|
|
location ~ ^/(api|docs|pictrs|feeds|nodeinfo|.well-known) {
|
|
|
|
proxy_pass http://lemmy-alpha;
|
2020-09-15 19:26:47 +00:00
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
}
|
2020-03-28 16:30:59 +00:00
|
|
|
location / {
|
2020-09-24 13:50:38 +00:00
|
|
|
set $proxpass http://lemmy-alpha-ui;
|
|
|
|
if ($http_accept = "application/activity+json") {
|
|
|
|
set $proxpass http://lemmy-alpha;
|
|
|
|
}
|
2020-12-16 17:24:14 +00:00
|
|
|
if ($http_accept = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"") {
|
|
|
|
set $proxpass http://lemmy-alpha;
|
|
|
|
}
|
2020-09-24 13:50:38 +00:00
|
|
|
proxy_pass $proxpass;
|
|
|
|
|
2020-03-28 16:30:59 +00:00
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
|
2020-08-01 23:33:39 +00:00
|
|
|
# Cuts off the trailing slash on URLs to make them valid
|
|
|
|
rewrite ^(.+)/+$ $1 permanent;
|
2020-03-28 16:30:59 +00:00
|
|
|
}
|
|
|
|
location /iframely/ {
|
2020-04-14 15:47:55 +00:00
|
|
|
proxy_pass http://iframely:80/;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
2020-03-28 16:30:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-09-24 13:50:38 +00:00
|
|
|
upstream lemmy-beta {
|
|
|
|
server "lemmy-beta:8551";
|
|
|
|
}
|
|
|
|
upstream lemmy-beta-ui {
|
|
|
|
server "lemmy-beta-ui:1234";
|
|
|
|
}
|
2020-03-28 16:30:59 +00:00
|
|
|
server {
|
2020-04-14 15:47:55 +00:00
|
|
|
listen 8550;
|
|
|
|
server_name 127.0.0.1;
|
|
|
|
access_log off;
|
2020-03-28 16:30:59 +00:00
|
|
|
|
2020-04-14 15:47:55 +00:00
|
|
|
# Upload limit for pictshare
|
|
|
|
client_max_body_size 50M;
|
2020-03-28 16:30:59 +00:00
|
|
|
|
2020-09-24 13:50:38 +00:00
|
|
|
location ~ ^/(api|docs|pictrs|feeds|nodeinfo|.well-known) {
|
|
|
|
proxy_pass http://lemmy-beta;
|
2020-09-15 19:26:47 +00:00
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
}
|
2020-04-14 15:47:55 +00:00
|
|
|
location / {
|
2020-09-24 13:50:38 +00:00
|
|
|
set $proxpass http://lemmy-beta-ui;
|
|
|
|
if ($http_accept = "application/activity+json") {
|
|
|
|
set $proxpass http://lemmy-beta;
|
|
|
|
}
|
2020-12-16 17:24:14 +00:00
|
|
|
if ($http_accept = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"") {
|
|
|
|
set $proxpass http://lemmy-beta;
|
|
|
|
}
|
2020-09-24 13:50:38 +00:00
|
|
|
proxy_pass $proxpass;
|
|
|
|
|
2020-04-14 15:47:55 +00:00
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
2020-03-28 16:30:59 +00:00
|
|
|
|
2020-08-01 23:33:39 +00:00
|
|
|
# Cuts off the trailing slash on URLs to make them valid
|
|
|
|
rewrite ^(.+)/+$ $1 permanent;
|
2020-04-14 15:47:55 +00:00
|
|
|
}
|
|
|
|
location /iframely/ {
|
|
|
|
proxy_pass http://iframely:80/;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
}
|
|
|
|
}
|
2020-06-03 21:55:32 +00:00
|
|
|
|
2020-09-24 13:50:38 +00:00
|
|
|
upstream lemmy-gamma {
|
|
|
|
server "lemmy-gamma:8561";
|
|
|
|
}
|
|
|
|
upstream lemmy-gamma-ui {
|
|
|
|
server "lemmy-gamma-ui:1234";
|
|
|
|
}
|
2020-06-03 21:55:32 +00:00
|
|
|
server {
|
|
|
|
listen 8560;
|
|
|
|
server_name 127.0.0.1;
|
|
|
|
access_log off;
|
|
|
|
|
|
|
|
# Upload limit for pictshare
|
|
|
|
client_max_body_size 50M;
|
|
|
|
|
2020-09-24 13:50:38 +00:00
|
|
|
location ~ ^/(api|docs|pictrs|feeds|nodeinfo|.well-known) {
|
|
|
|
proxy_pass http://lemmy-gamma;
|
2020-09-15 19:26:47 +00:00
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
}
|
2020-06-03 21:55:32 +00:00
|
|
|
location / {
|
2020-09-24 13:50:38 +00:00
|
|
|
set $proxpass http://lemmy-gamma-ui;
|
|
|
|
if ($http_accept = "application/activity+json") {
|
|
|
|
set $proxpass http://lemmy-gamma;
|
|
|
|
}
|
2020-12-16 17:24:14 +00:00
|
|
|
if ($http_accept = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"") {
|
|
|
|
set $proxpass http://lemmy-gamma;
|
|
|
|
}
|
2020-09-24 13:50:38 +00:00
|
|
|
proxy_pass $proxpass;
|
|
|
|
|
2020-06-03 21:55:32 +00:00
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
|
2020-08-01 23:33:39 +00:00
|
|
|
# Cuts off the trailing slash on URLs to make them valid
|
|
|
|
rewrite ^(.+)/+$ $1 permanent;
|
2020-06-03 21:55:32 +00:00
|
|
|
}
|
|
|
|
location /iframely/ {
|
|
|
|
proxy_pass http://iframely:80/;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
}
|
|
|
|
}
|
2020-08-20 12:44:22 +00:00
|
|
|
|
2020-09-24 13:50:38 +00:00
|
|
|
upstream lemmy-delta {
|
|
|
|
server "lemmy-delta:8571";
|
|
|
|
}
|
|
|
|
upstream lemmy-delta-ui {
|
|
|
|
server "lemmy-delta-ui:1234";
|
|
|
|
}
|
2020-08-20 12:44:22 +00:00
|
|
|
server {
|
|
|
|
listen 8570;
|
|
|
|
server_name 127.0.0.1;
|
|
|
|
access_log off;
|
|
|
|
|
|
|
|
# Upload limit for pictshare
|
|
|
|
client_max_body_size 50M;
|
|
|
|
|
2020-09-24 13:50:38 +00:00
|
|
|
location ~ ^/(api|docs|pictrs|feeds|nodeinfo|.well-known) {
|
|
|
|
proxy_pass http://lemmy-delta;
|
2020-09-15 19:26:47 +00:00
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
}
|
2020-08-20 12:44:22 +00:00
|
|
|
location / {
|
2020-09-24 13:50:38 +00:00
|
|
|
set $proxpass http://lemmy-delta-ui;
|
|
|
|
if ($http_accept = "application/activity+json") {
|
|
|
|
set $proxpass http://lemmy-delta;
|
|
|
|
}
|
2020-12-16 17:24:14 +00:00
|
|
|
if ($http_accept = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"") {
|
|
|
|
set $proxpass http://lemmy-delta;
|
|
|
|
}
|
2020-09-24 13:50:38 +00:00
|
|
|
proxy_pass $proxpass;
|
|
|
|
|
2020-08-20 12:44:22 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
location /iframely/ {
|
|
|
|
proxy_pass http://iframely:80/;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-09-24 13:50:38 +00:00
|
|
|
upstream lemmy-epsilon {
|
|
|
|
server "lemmy-epsilon:8581";
|
|
|
|
}
|
|
|
|
upstream lemmy-epsilon-ui {
|
|
|
|
server "lemmy-epsilon-ui:1234";
|
|
|
|
}
|
2020-08-20 12:44:22 +00:00
|
|
|
server {
|
|
|
|
listen 8580;
|
|
|
|
server_name 127.0.0.1;
|
|
|
|
access_log off;
|
|
|
|
|
|
|
|
# Upload limit for pictshare
|
|
|
|
client_max_body_size 50M;
|
|
|
|
|
2020-09-24 13:50:38 +00:00
|
|
|
location ~ ^/(api|docs|pictrs|feeds|nodeinfo|.well-known) {
|
|
|
|
proxy_pass http://lemmy-epsilon;
|
2020-09-15 19:26:47 +00:00
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
}
|
2020-08-20 12:44:22 +00:00
|
|
|
location / {
|
2020-09-24 13:50:38 +00:00
|
|
|
set $proxpass http://lemmy-epsilon-ui;
|
|
|
|
if ($http_accept = "application/activity+json") {
|
|
|
|
set $proxpass http://lemmy-epsilon;
|
|
|
|
}
|
2020-12-16 17:24:14 +00:00
|
|
|
if ($http_accept = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"") {
|
|
|
|
set $proxpass http://lemmy-epsilon;
|
|
|
|
}
|
2020-09-24 13:50:38 +00:00
|
|
|
proxy_pass $proxpass;
|
|
|
|
|
2020-08-20 12:44:22 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
location /iframely/ {
|
|
|
|
proxy_pass http://iframely:80/;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
}
|
|
|
|
}
|
2020-03-28 16:30:59 +00:00
|
|
|
}
|