2020-03-28 12:30:59 -04:00
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
|
|
|
server {
|
|
|
|
listen 8540;
|
|
|
|
server_name 127.0.0.1;
|
2020-04-14 11:47:55 -04:00
|
|
|
access_log off;
|
2020-03-28 12:30:59 -04:00
|
|
|
|
|
|
|
# Upload limit for pictshare
|
|
|
|
client_max_body_size 50M;
|
|
|
|
|
|
|
|
location / {
|
2020-07-01 08:54:29 -04:00
|
|
|
proxy_pass http://lemmy-alpha:8540;
|
2020-03-28 12:30:59 -04: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;
|
|
|
|
|
|
|
|
# WebSocket support
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
}
|
|
|
|
|
2020-06-23 21:11:38 -04:00
|
|
|
# pict-rs images
|
|
|
|
location /pictrs {
|
|
|
|
location /pictrs/image {
|
2020-07-01 08:54:29 -04:00
|
|
|
proxy_pass http://pictrs:8080/image;
|
2020-04-14 11:47:55 -04: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-06-23 21:11:38 -04:00
|
|
|
}
|
|
|
|
# Block the import
|
|
|
|
return 403;
|
2020-03-28 12:30:59 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
location /iframely/ {
|
2020-04-14 11:47:55 -04: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 12:30:59 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
2020-04-14 11:47:55 -04:00
|
|
|
listen 8550;
|
|
|
|
server_name 127.0.0.1;
|
|
|
|
access_log off;
|
2020-03-28 12:30:59 -04:00
|
|
|
|
2020-04-14 11:47:55 -04:00
|
|
|
# Upload limit for pictshare
|
|
|
|
client_max_body_size 50M;
|
2020-03-28 12:30:59 -04:00
|
|
|
|
2020-04-14 11:47:55 -04:00
|
|
|
location / {
|
2020-07-01 08:54:29 -04:00
|
|
|
proxy_pass http://lemmy-beta:8550;
|
2020-04-14 11:47:55 -04: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 12:30:59 -04:00
|
|
|
|
2020-04-14 11:47:55 -04:00
|
|
|
# WebSocket support
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
}
|
2020-03-28 12:30:59 -04:00
|
|
|
|
2020-06-23 21:11:38 -04:00
|
|
|
# pict-rs images
|
|
|
|
location /pictrs {
|
|
|
|
location /pictrs/image {
|
2020-07-01 08:54:29 -04:00
|
|
|
proxy_pass http://pictrs:8080/image;
|
2020-04-14 11:47:55 -04: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-06-23 21:11:38 -04:00
|
|
|
}
|
|
|
|
# Block the import
|
|
|
|
return 403;
|
2020-04-14 11:47:55 -04:00
|
|
|
}
|
2020-03-28 12:30:59 -04:00
|
|
|
|
2020-04-14 11:47:55 -04: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 17:55:32 -04:00
|
|
|
|
|
|
|
server {
|
|
|
|
listen 8560;
|
|
|
|
server_name 127.0.0.1;
|
|
|
|
access_log off;
|
|
|
|
|
|
|
|
# Upload limit for pictshare
|
|
|
|
client_max_body_size 50M;
|
|
|
|
|
|
|
|
location / {
|
2020-07-01 08:54:29 -04:00
|
|
|
proxy_pass http://lemmy-gamma:8560;
|
2020-06-03 17:55:32 -04: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;
|
|
|
|
|
|
|
|
# WebSocket support
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
}
|
|
|
|
|
2020-06-23 21:11:38 -04:00
|
|
|
# pict-rs images
|
|
|
|
location /pictrs {
|
|
|
|
location /pictrs/image {
|
2020-07-01 08:54:29 -04:00
|
|
|
proxy_pass http://pictrs:8080/image;
|
2020-06-03 17:55:32 -04: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-06-23 21:11:38 -04:00
|
|
|
}
|
|
|
|
# Block the import
|
|
|
|
return 403;
|
2020-06-03 17:55:32 -04: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-03-28 12:30:59 -04:00
|
|
|
}
|