onf.d/default.conf
i@raspi2:/etc/nginx $ cat conf.d/default.conf
server {
server_name surveyor.mydns.jp;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location / {
root /var/www/html;
index index.html index.htm;
}
location /task-bldg/ {
proxy_pass http://macmini:8083/task-bldg/;
proxy_redirect http://macmini:8083/task-bldg/ http://surveyor.mydns.jp/task-bldg/;
}
location /solr/ {
proxy_pass http://raspi3:8983/solr/;
proxy_redirect http://surveyor.mydns.jp:8983/solr/ http://surveyor.mydns.jp/solr/;
proxy_set_header Host $host;
}
location /gitbucket/ {
proxy_pass http://macmini:8200/gitbucket/;
proxy_redirect http://surveyor.mydns.jp:8200/gitbucket/ http://surveyor.mydns.jp/gitbucket/;
proxy_set_header Host $host;
client_max_body_size 1024m;
}
location /unMapped/ {
proxy_pass https://raspi3:8181/unMapped/;
proxy_redirect https://surveyor.mydns.jp:8181/unMapped/ https://surveyor.mydns.jp/unMapped/;
proxy_set_header Host $host;
}
location /talk-ja/ {
proxy_pass http://raspi3:8210/talk-ja/;
proxy_redirect http://surveyor.mydns.jp:8210/talk-ja/ https://surveyor.mydns.jp/talk-ja/;
proxy_set_header Host $host;
}
location /archiva/ {
proxy_pass http://macmini:8380/;
proxy_redirect http://surveyor.mydns.jp:8380/archiva/ https://surveyor.mydns.jp/archiva/;
proxy_set_header Host $host;
client_max_body_size 1024m;
}
location /jenkins/ {
proxy_pass http://t3400:8889/;
proxy_redirect http://surveyor.mydns.jp:8889/jenkins/ https://surveyor.mydns.jp/jenkins/;
proxy_set_header Host $host;
client_max_body_size 1024m;
}
location /nextcloud/ {
proxy_pass http://macmini:8080/;
proxy_redirect http://surveyor.mydns.jp:8080/nextcloud/ https://surveyor.mydns.jp/nextcloud/;
rewrite /nextcloud/(.*)$ /$1 break;
proxy_set_header Host $host;
}
}