docker/nginx/nginx.conf

100 lines
2.2 KiB
Nginx Configuration File
Raw Normal View History

2023-12-09 12:54:38 +01:00
worker_processes auto;
events {
worker_connections 1024;
}
http {
server {
server_name wp.lan;
listen 80;
return 301 https://$server_name$request_uri;
2023-12-09 12:54:38 +01:00
index index.php;
location / {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass "http://wordpress";
}
}
server {
server_name wp.lan;
listen 443 ssl;
http2 on;
2023-12-09 12:54:38 +01:00
ssl_certificate /etc/nginx/certs/lan.pem;
ssl_certificate_key /etc/nginx/certs/lan-key.pem;
2023-12-09 12:54:38 +01:00
index index.php;
2023-12-09 12:54:38 +01:00
location / {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass "http://wordpress";
}
}
2023-12-09 12:54:38 +01:00
server {
2023-12-10 13:19:03 +01:00
server_name mz.lan;
listen 80;
2023-12-09 12:54:38 +01:00
2023-12-10 13:19:03 +01:00
return 301 https://$server_name$request_uri;
2023-12-09 12:54:38 +01:00
}
server {
server_name mz.lan;
listen 443 ssl;
http2 on;
ssl_certificate /etc/nginx/certs/lan.pem;
ssl_certificate_key /etc/nginx/certs/lan-key.pem;
client_max_body_size 16m;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
location / {
2024-06-19 12:48:05 +02:00
proxy_pass "http://mobilizon:4000";
2023-12-09 12:54:38 +01:00
}
}
2024-06-19 12:48:05 +02:00
server {
server_name ga.lan;
listen 80;
return 301 https://$server_name$request_uri;
}
# server {
# server_name ga.lan;
# listen 443 ssl;
# http2 on;
# ssl_certificate /etc/nginx/certs/lan.pem;
# ssl_certificate_key /etc/nginx/certs/lan-key.pem;
# client_max_body_size 16m;
# proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection "upgrade";
# proxy_set_header Host $http_host;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header X-Forwarded-Proto $scheme;
# location / {
# proxy_pass "http://gancio:13120";
# }
# }
2023-12-09 12:54:38 +01:00
}