2022-11-16 21:08:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
user nginx;
|
|
|
|
worker_processes auto;
|
|
|
|
|
|
|
|
error_log /var/log/nginx/error.log notice;
|
|
|
|
pid /var/run/nginx.pid;
|
|
|
|
|
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
http {
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
|
|
|
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
|
|
|
'$status $body_bytes_sent "$http_referer" '
|
|
|
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
|
|
|
|
|
|
access_log /var/log/nginx/access.log main;
|
|
|
|
|
|
|
|
sendfile on;
|
|
|
|
#tcp_nopush on;
|
|
|
|
|
|
|
|
keepalive_timeout 65;
|
|
|
|
|
|
|
|
#gzip on;
|
|
|
|
|
|
|
|
|
2022-11-18 16:15:04 +00:00
|
|
|
#server {
|
|
|
|
# listen 80;
|
|
|
|
# listen [::]:80;
|
|
|
|
# root /mnt/none;
|
|
|
|
# index index.html index.htm;
|
|
|
|
|
|
|
|
# server_name mastodon.pubtester.local;
|
|
|
|
|
|
|
|
# absolute_redirect off;
|
|
|
|
# server_name_in_redirect off;
|
|
|
|
|
|
|
|
# error_page 404 /404.html;
|
|
|
|
# error_page 410 /410.html;
|
|
|
|
|
|
|
|
# location / {
|
|
|
|
# proxy_set_header Host $http_host;
|
|
|
|
# proxy_set_header X-Forwarded-Proto https;
|
|
|
|
|
|
|
|
# proxy_pass http://mastodon_web:3000;
|
|
|
|
# }
|
|
|
|
|
|
|
|
# location ^~ /api/v1/streaming {
|
|
|
|
# proxy_set_header Host $http_host;
|
|
|
|
# proxy_set_header X-Forwarded-Proto https;
|
|
|
|
|
|
|
|
# proxy_pass http://mastodon_streaming:4000;
|
|
|
|
|
|
|
|
# proxy_buffering off;
|
|
|
|
# proxy_redirect off;
|
|
|
|
# proxy_http_version 1.1;
|
|
|
|
# tcp_nodelay on;
|
|
|
|
# }
|
|
|
|
#}
|
|
|
|
|
|
|
|
|
2022-11-16 21:08:17 +00:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
2022-11-18 16:15:04 +00:00
|
|
|
listen 443 ssl;
|
|
|
|
listen [::]:443 ssl;
|
2022-11-16 21:08:17 +00:00
|
|
|
root /mnt/none;
|
|
|
|
index index.html index.htm;
|
|
|
|
|
2022-11-18 16:15:04 +00:00
|
|
|
server_name pleroma.pubtester.local;
|
2022-11-16 21:08:17 +00:00
|
|
|
|
|
|
|
absolute_redirect off;
|
|
|
|
server_name_in_redirect off;
|
2022-11-18 16:15:04 +00:00
|
|
|
ssl_certificate /etc/nginx/cert.pem;
|
|
|
|
ssl_certificate_key /etc/nginx/key.pem;
|
2022-11-16 21:08:17 +00:00
|
|
|
|
|
|
|
location / {
|
|
|
|
proxy_set_header Host $http_host;
|
|
|
|
proxy_set_header X-Forwarded-Proto https;
|
2022-11-18 16:15:04 +00:00
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
proxy_pass http://pleroma_web:4000;
|
2022-11-16 21:08:17 +00:00
|
|
|
}
|
|
|
|
}
|
2022-11-17 02:22:33 +00:00
|
|
|
|
2022-11-18 16:15:04 +00:00
|
|
|
|
2022-11-17 02:22:33 +00:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
2022-11-18 16:15:04 +00:00
|
|
|
listen 443 ssl;
|
|
|
|
listen [::]:443 ssl;
|
2022-11-17 02:22:33 +00:00
|
|
|
root /mnt/none;
|
|
|
|
index index.html index.htm;
|
|
|
|
|
2022-11-18 16:15:04 +00:00
|
|
|
server_name pleroma2.pubtester.local;
|
2022-11-17 02:22:33 +00:00
|
|
|
|
|
|
|
absolute_redirect off;
|
|
|
|
server_name_in_redirect off;
|
2022-11-18 16:15:04 +00:00
|
|
|
ssl_certificate /etc/nginx/cert.pem;
|
|
|
|
ssl_certificate_key /etc/nginx/key.pem;
|
2022-11-17 02:22:33 +00:00
|
|
|
|
|
|
|
location / {
|
|
|
|
proxy_set_header Host $http_host;
|
|
|
|
proxy_set_header X-Forwarded-Proto https;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
2022-11-18 16:15:04 +00:00
|
|
|
proxy_pass http://pleroma2_web:4000;
|
2022-11-17 02:22:33 +00:00
|
|
|
}
|
|
|
|
}
|
2022-11-18 16:15:04 +00:00
|
|
|
|
2022-11-16 21:08:17 +00:00
|
|
|
}
|