āautomaticallyā So, I understand, there is nothing to do ; am I right?
Do you have some other proxy in front of Caddy? If so, you need to set up trusted_proxies
.
Or, do you have something that might be changing the TCP packets to make it look like they come from the same machine?
there is from outside
router ā caddy ā domoticz
form inside (I suppose) DNS ā router ā caddy ā domoticz (as before when Synology was doing the reverse-proxy)
Some log
2022/12/20 07:47:37.838 WARN Caddyfile input is not formatted; run the 'caddy fmt' command to fix inconsistencies {"adapter": "caddyfile", "file": "Caddyfile", "line": 8}
2022/12/20 07:47:37.839 INFO admin admin endpoint started {"address": "localhost:2019", "enforce_origin": false, "origins": ["//localhost:2019", "//[::1]:2019", "//127.0.0.1:2019"]}
2022/12/20 07:47:37.840 INFO http server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS {"server_name": "srv0", "https_port": 443}
2022/12/20 07:47:37.841 INFO http enabling automatic HTTP->HTTPS redirects {"server_name": "srv0"}
2022/12/20 07:47:37.842 INFO http enabling HTTP/3 listener {"addr": ":443"}
2022/12/20 07:47:37.843 DEBUG http starting server loop {"address": "[::]:443", "tls": true, "http3": true}
2022/12/20 07:47:37.844 INFO http.log server running {"name": "srv0", "protocols": ["h1", "h2", "h3"]}
2022/12/20 07:47:37.845 DEBUG http starting server loop {"address": "[::]:80", "tls": false, "http3": false}
2022/12/20 07:47:37.845 INFO http.log server running {"name": "remaining_auto_https_redirects", "protocols": ["h1", "h2", "h3"]}
2022/12/20 07:47:37.846 INFO http enabling automatic TLS certificate management {"domains": ["hestia.bris.fr"]}
2022/12/20 07:47:37.847 DEBUG tls loading managed certificate {"domain": "hestia.bris.fr", "expiration": "2023/03/12 16:44:05.000", "issuer_key": "acme-v02.api.letsencrypt.org-directory", "storage": "FileStorage:/root/.local/share/caddy"}
2022/12/20 07:47:37.849 DEBUG tls.cache added certificate to cache {"subjects": ["hestia.bris.fr"], "expiration": "2023/03/12 16:44:05.000", "managed": true, "issuer_key": "acme-v02.api.letsencrypt.org-directory", "hash": "7bc6364429263014cd5a9e28ae0f5881fa153588ac148b339571c0b81e062d68", "cache_size": 1, "cache_capacity": 10000}
2022/12/20 07:47:37.850 DEBUG events event {"name": "cached_managed_cert", "id": "4a16750a-7eb1-4d8d-b60c-80d96b62958d", "origin": "tls", "data": {"sans":["hestia.bris.fr"]}}
2022/12/20 07:47:37.851 INFO autosaved config (load with --resume flag) {"file": "/root/.config/caddy/autosave.json"}
2022/12/20 07:47:37.851 INFO serving initial configuration
2022/12/20 07:47:37.852 INFO tls.cache.maintenance started background certificate maintenance {"cache": "0xc000189420"}
2022/12/20 07:47:37.853 INFO tls cleaning storage unit {"description": "FileStorage:/root/.local/share/caddy"}
2022/12/20 07:47:37.858 INFO tls finished cleaning storage units
2022/12/20 07:47:39.627 DEBUG events event {"name": "tls_get_certificate", "id": "13167e3d-cd42-4718-b35b-72270de4bc44", "origin": "tls", "data": {"client_hello":{"CipherSuites":[39578,4865,4866,4867,49195,49199,49196,49200,52393,52392,49171,49172,156,157,47,53],"ServerName":"hestia.bris.fr","SupportedCurves":[60138,29,23,24],"SupportedPoints":"AA==","SignatureSchemes":[1027,2052,1025,1283,2053,1281,2054,1537],"SupportedProtos":["h2","http/1.1"],"SupportedVersions":[56026,772,771],"Conn":{}}}}
2022/12/20 07:47:39.629 DEBUG tls.handshake choosing certificate {"identifier": "hestia.bris.fr", "num_choices": 1}
2022/12/20 07:47:39.629 DEBUG tls.handshake default certificate selection results {"identifier": "hestia.bris.fr", "subjects": ["hestia.bris.fr"], "managed": true, "issuer_key": "acme-v02.api.letsencrypt.org-directory", "hash": "7bc6364429263014cd5a9e28ae0f5881fa153588ac148b339571c0b81e062d68"}
2022/12/20 07:47:39.630 DEBUG tls.handshake matched certificate in cache {"remote_ip": "192.168.9.1", "remote_port": "59738", "subjects": ["hestia.bris.fr"], "managed": true, "expiration": "2023/03/12 16:44:05.000", "hash": "7bc6364429263014cd5a9e28ae0f5881fa153588ac148b339571c0b81e062d68"}
2022/12/20 07:47:39.637 DEBUG http.handlers.reverse_proxy selected upstream {"dial": "hestia.lan.bris.fr:8080", "total_upstreams": 1}
2022/12/20 07:47:39.644 DEBUG http.handlers.reverse_proxy upstream roundtrip {"upstream": "hestia.lan.bris.fr:8080", "duration": 0.006600614, "request": {"remote_ip": "192.168.9.1", "remote_port": "59738", "proto": "HTTP/2.0", "method": "GET", "host": "hestia.bris.fr", "uri": "/json.htm?type=command¶m=getlog&lastlogtime=1671522423&loglevel=268435455", "headers": {"Accept-Language": ["en-US,en;q=0.9,fr;q=0.8"], "Sec-Ch-Ua-Mobile": ["?0"], "Accept-Encoding": ["gzip, deflate, br"], "Accept": ["application/json, text/plain, */*"], "X-Forwarded-Host": ["hestia.bris.fr"], "Sec-Ch-Ua": ["\"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"108\", \"Google Chrome\";v=\"108\""], "X-Forwarded-For": ["192.168.9.1"], "Sec-Ch-Ua-Platform": ["\"Windows\""], "Sec-Fetch-Dest": ["empty"], "Referer": ["https://hestia.bris.fr/"], "X-Forwarded-Proto": ["https"], "User-Agent": ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"], "Sec-Fetch-Site": ["same-origin"], "Sec-Fetch-Mode": ["cors"], "Cookie": []}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "server_name": "hestia.bris.fr"}}, "headers": {"Access-Control-Allow-Origin": ["*"], "Content-Type": ["application/json;charset=UTF-8"], "Content-Encoding": ["gzip"], "Content-Length": ["244"], "Cache-Control": ["no-cache"], "Pragma": ["no-cache"]}, "status": 200}
2022/12/20 07:47:43.911 DEBUG http.handlers.reverse_proxy selected upstream {"dial": "hestia.lan.bris.fr:8080", "total_upstreams": 1}
2022/12/20 07:47:43.920 DEBUG http.handlers.reverse_proxy upstream roundtrip {"upstream": "hestia.lan.bris.fr:8080", "duration": 0.007816159, "request": {"remote_ip": "192.168.9.1", "remote_port": "59738", "proto": "HTTP/2.0", "method": "GET", "host": "hestia.bris.fr", "uri": "/", "headers": {"Sec-Ch-Ua-Mobile": ["?0"], "Accept": ["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"], "Accept-Encoding": ["gzip, deflate, br"], "X-Forwarded-For": ["192.168.9.1"], "X-Forwarded-Host": ["hestia.bris.fr"], "X-Forwarded-Proto": ["https"], "Accept-Language": ["en-US,en;q=0.9,fr;q=0.8"], "Sec-Fetch-Mode": ["navigate"], "Upgrade-Insecure-Requests": ["1"], "Sec-Fetch-User": ["?1"], "Sec-Fetch-Site": ["same-origin"], "If-Modified-Since": ["Sat, 08 Oct 2022 05:45:39 GMT"], "Cache-Control": ["max-age=0"], "User-Agent": ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"], "Cookie": [], "Service-Worker-Navigation-Preload": ["true"], "Sec-Fetch-Dest": ["document"], "Sec-Ch-Ua-Platform": ["\"Windows\""], "Sec-Ch-Ua": ["\"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"108\", \"Google Chrome\";v=\"108\""]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "server_name": "hestia.bris.fr"}}, "headers": {}, "status": 304}
2022/12/20 07:47:44.079 DEBUG http.handlers.reverse_proxy selected upstream {"dial": "hestia.lan.bris.fr:8080", "total_upstreams": 1}
2022/12/20 07:47:44.080 DEBUG http.handlers.reverse_proxy selected upstream {"dial": "hestia.lan.bris.fr:8080", "total_upstreams": 1}
2022/12/20 07:47:44.087 DEBUG http.handlers.reverse_proxy upstream roundtrip {"upstream": "hestia.lan.bris.fr:8080", "duration": 0.00675171, "request": {"remote_ip": "192.168.9.1", "remote_port": "59738", "proto": "HTTP/2.0", "method": "GET", "host": "hestia.bris.fr", "uri": "/styles/default/custom.css", "headers": {"X-Forwarded-For": ["192.168.9.1"], "Sec-Ch-Ua": ["\"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"108\", \"Google Chrome\";v=\"108\""], "Sec-Fetch-Dest": ["empty"], "Sec-Ch-Ua-Platform": ["\"Windows\""], "Accept": ["text/css,*/*;q=0.1"], "Sec-Fetch-Site": ["same-origin"], "Cookie": [], "X-Forwarded-Host": ["hestia.bris.fr"], "Referer": ["https://hestia.bris.fr/"], "Accept-Language": ["en-US,en;q=0.9,fr;q=0.8"], "Sec-Ch-Ua-Mobile": ["?0"], "User-Agent": ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"], "X-Forwarded-Proto": ["https"], "Accept-Encoding": ["gzip, deflate, br"], "Sec-Fetch-Mode": ["no-cors"]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "server_name": "hestia.bris.fr"}}, "headers": {"Content-Encoding": ["gzip"], "Access-Control-Allow-Origin": ["*"], "X-Xss-Protection": ["1; mode=block"], "Content-Type": ["text/css;charset=UTF-8"], "Content-Length": ["501"], "X-Content-Type-Options": ["nosniff"]}, "status": 200}
2022/12/20 07:47:44.091 DEBUG http.handlers.reverse_proxy upstream roundtrip {"upstream": "hestia.lan.bris.fr:8080", "duration": 0.00838713, "request": {"remote_ip": "192.168.9.1", "remote_port": "59738", "proto": "HTTP/2.0", "method": "GET", "host": "hestia.bris.fr", "uri": "/styles/default/custom.js", "headers": {"Sec-Fetch-Site": ["same-origin"], "Sec-Fetch-Mode": ["no-cors"], "Referer": ["https://hestia.bris.fr/"], "X-Forwarded-For": ["192.168.9.1"], "Sec-Ch-Ua-Mobile": ["?0"], "Accept-Language": ["en-US,en;q=0.9,fr;q=0.8"], "Cookie": [], "User-Agent": ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"], "Sec-Fetch-Dest": ["empty"], "Accept-Encoding": ["gzip, deflate, br"], "Accept": ["*/*"], "Sec-Ch-Ua-Platform": ["\"Windows\""], "X-Forwarded-Host": ["hestia.bris.fr"], "Sec-Ch-Ua": ["\"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"108\", \"Google Chrome\";v=\"108\""], "X-Forwarded-Proto": ["https"]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "server_name": "hestia.bris.fr"}}, "headers": {"Content-Encoding": ["gzip"], "Content-Type": ["application/javascript;charset=UTF-8"], "Access-Control-Allow-Origin": ["*"], "Content-Length": ["679"], "X-Content-Type-Options": ["nosniff"], "X-Xss-Protection": ["1; mode=block"]}, "status": 200}
2022/12/20 07:47:46.263 DEBUG http.handlers.reverse_proxy selected upstream {"dial": "hestia.lan.bris.fr:8080", "total_upstreams": 1}
2022/12/20 07:47:46.277 DEBUG http.handlers.reverse_proxy upstream roundtrip {"upstream": "hestia.lan.bris.fr:8080", "duration": 0.013147976, "request": {"remote_ip": "192.168.9.1", "remote_port": "59738", "proto": "HTTP/2.0", "method": "GET", "host": "hestia.bris.fr", "uri": "/json.htm?type=command¶m=getconfig", "headers": {"User-Agent": ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"], "X-Forwarded-Proto": ["https"], "Sec-Fetch-Mode": ["cors"], "Sec-Fetch-Dest": ["empty"], "Sec-Ch-Ua-Mobile": ["?0"], "Accept-Encoding": ["gzip, deflate, br"], "X-Forwarded-Host": ["hestia.bris.fr"], "Sec-Ch-Ua-Platform": ["\"Windows\""], "Cookie": [], "X-Forwarded-For": ["192.168.9.1"], "Sec-Fetch-Site": ["same-origin"], "Sec-Ch-Ua": ["\"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"108\", \"Google Chrome\";v=\"108\""], "Accept": ["application/json, text/javascript, */*; q=0.01"], "Referer": ["https://hestia.bris.fr/"], "Accept-Language": ["en-US,en;q=0.9,fr;q=0.8"], "X-Requested-With": ["XMLHttpRequest"]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "server_name": "hestia.bris.fr"}}, "headers": {"Content-Length": ["291"], "Cache-Control": ["no-cache"], "Content-Encoding": ["gzip"], "Pragma": ["no-cache"], "Access-Control-Allow-Origin": ["*"], "Content-Type": ["application/json;charset=UTF-8"]}, "status": 200}
2022/12/20 07:47:46.428 DEBUG http.handlers.reverse_proxy selected upstream {"dial": "hestia.lan.bris.fr:8080", "total_upstreams": 1}
2022/12/20 07:47:46.436 DEBUG http.handlers.reverse_proxy upstream roundtrip {"upstream": "hestia.lan.bris.fr:8080", "duration": 0.006835563, "request": {"remote_ip": "192.168.9.1", "remote_port": "59738", "proto": "HTTP/2.0", "method": "GET", "host": "hestia.bris.fr", "uri": "/json.htm?type=command¶m=getversion", "headers": {"Referer": ["https://hestia.bris.fr/"], "Accept-Encoding": ["gzip, deflate, br"], "Sec-Ch-Ua-Platform": ["\"Windows\""], "Accept-Language": ["en-US,en;q=0.9,fr;q=0.8"], "Sec-Ch-Ua-Mobile": ["?0"], "Sec-Ch-Ua": ["\"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"108\", \"Google Chrome\";v=\"108\""], "X-Requested-With": ["XMLHttpRequest"], "Cookie": [], "X-Forwarded-For": ["192.168.9.1"], "Sec-Fetch-Dest": ["empty"], "User-Agent": ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"], "Accept": ["application/json, text/javascript, */*; q=0.01"], "X-Forwarded-Proto": ["https"], "Sec-Fetch-Mode": ["cors"], "Sec-Fetch-Site": ["same-origin"], "X-Forwarded-Host": ["hestia.bris.fr"]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "server_name": "hestia.bris.fr"}}, "headers": {"Access-Control-Allow-Origin": ["*"], "Content-Length": ["319"], "Cache-Control": ["no-cache"], "Pragma": ["no-cache"], "Content-Type": ["application/json;charset=UTF-8"], "Content-Encoding": ["gzip"]}, "status": 200}
2022/12/20 07:47:46.462 DEBUG http.handlers.reverse_proxy selected upstream {"dial": "hestia.lan.bris.fr:8080", "total_upstreams": 1}
2022/12/20 07:47:46.468 DEBUG http.handlers.reverse_proxy upstream roundtrip {"upstream": "hestia.lan.bris.fr:8080", "duration": 0.005596841, "request": {"remote_ip": "192.168.9.1", "remote_port": "59738", "proto": "HTTP/2.0", "method": "GET", "host": "hestia.bris.fr", "uri": "/json.htm?type=command¶m=getauth", "headers": {"Cookie": [], "X-Requested-With": ["XMLHttpRequest"], "Sec-Fetch-Site": ["same-origin"], "X-Forwarded-Host": ["hestia.bris.fr"], "Referer": ["https://hestia.bris.fr/"], "Accept-Encoding": ["gzip, deflate, br"], "X-Forwarded-For": ["192.168.9.1"], "Sec-Fetch-Dest": ["empty"], "Sec-Ch-Ua": ["\"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"108\", \"Google Chrome\";v=\"108\""], "Sec-Ch-Ua-Mobile": ["?0"], "Sec-Fetch-Mode": ["cors"], "Accept-Language": ["en-US,en;q=0.9,fr;q=0.8"], "Sec-Ch-Ua-Platform": ["\"Windows\""], "Accept": ["application/json, text/javascript, */*; q=0.01"], "X-Forwarded-Proto": ["https"], "User-Agent": ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "server_name": "hestia.bris.fr"}}, "headers": {"Cache-Control": ["no-cache"], "Pragma": ["no-cache"], "Access-Control-Allow-Origin": ["*"], "Content-Type": ["application/json;charset=UTF-8"], "Content-Encoding": ["gzip"], "Content-Length": ["98"]}, "status": 200}
2022/12/20 07:47:46.683 DEBUG http.handlers.reverse_proxy selected upstream {"dial": "hestia.lan.bris.fr:8080", "total_upstreams": 1}
2022/12/20 07:47:46.696 DEBUG http.handlers.reverse_proxy upstream roundtrip {"upstream": "hestia.lan.bris.fr:8080", "duration": 0.011503213, "request": {"remote_ip": "192.168.9.1", "remote_port": "59738", "proto": "HTTP/2.0", "method": "GET", "host": "hestia.bris.fr", "uri": "/json.htm?type=command¶m=getlog&lastlogtime=0&loglevel=268435455", "headers": {"Sec-Ch-Ua": ["\"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"108\", \"Google Chrome\";v=\"108\""], "Sec-Fetch-Site": ["same-origin"], "Sec-Fetch-Mode": ["cors"], "Sec-Ch-Ua-Mobile": ["?0"], "Cookie": [], "User-Agent": ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"], "Sec-Ch-Ua-Platform": ["\"Windows\""], "X-Forwarded-Proto": ["https"], "Accept": ["application/json, text/plain, */*"], "Accept-Language": ["en-US,en;q=0.9,fr;q=0.8"], "Accept-Encoding": ["gzip, deflate, br"], "Sec-Fetch-Dest": ["empty"], "Referer": ["https://hestia.bris.fr/"], "X-Forwarded-For": ["192.168.9.1"], "X-Forwarded-Host": ["hestia.bris.fr"]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "server_name": "hestia.bris.fr"}}, "headers": {"Access-Control-Allow-Origin": ["*"], "Cache-Control": ["no-cache"], "Content-Length": ["3183"], "Content-Type": ["application/json;charset=UTF-8"], "Content-Encoding": ["gzip"], "Pragma": ["no-cache"]}, "status": 200}
2022/12/20 07:47:46.846 DEBUG events event {"name": "tls_get_certificate", "id": "7e9af3c7-2ad2-4963-a03a-15ad3a03dcbb", "origin": "tls", "data": {"client_hello":{"CipherSuites":[47802,4865,4866,4867,49195,49199,49196,49200,52393,52392,49171,49172,156,157,47,53],"ServerName":"hestia.bris.fr","SupportedCurves":[10794,29,23,24],"SupportedPoints":"AA==","SignatureSchemes":[1027,2052,1025,1283,2053,1281,2054,1537],"SupportedProtos":["h2","http/1.1"],"SupportedVersions":[51914,772,771],"Conn":{}}}}
2022/12/20 07:47:46.847 DEBUG tls.handshake choosing certificate {"identifier": "hestia.bris.fr", "num_choices": 1}
2022/12/20 07:47:46.848 DEBUG tls.handshake default certificate selection results {"identifier": "hestia.bris.fr", "subjects": ["hestia.bris.fr"], "managed": true, "issuer_key": "acme-v02.api.letsencrypt.org-directory", "hash": "7bc6364429263014cd5a9e28ae0f5881fa153588ac148b339571c0b81e062d68"}
2022/12/20 07:47:46.849 DEBUG tls.handshake matched certificate in cache {"remote_ip": "192.168.9.1", "remote_port": "59747", "subjects": ["hestia.bris.fr"], "managed": true, "expiration": "2023/03/12 16:44:05.000", "hash": "7bc6364429263014cd5a9e28ae0f5881fa153588ac148b339571c0b81e062d68"}
2022/12/20 07:47:46.855 DEBUG http.handlers.reverse_proxy selected upstream {"dial": "hestia.lan.bris.fr:8080", "total_upstreams": 1}
2022/12/20 07:47:46.862 DEBUG http.handlers.reverse_proxy upstream roundtrip {"upstream": "hestia.lan.bris.fr:8080", "duration": 0.006099685, "request": {"remote_ip": "192.168.9.1", "remote_port": "59747", "proto": "HTTP/2.0", "method": "GET", "host": "hestia.bris.fr", "uri": "/", "headers": {"Sec-Ch-Ua-Platform": ["\"Windows\""], "Upgrade-Insecure-Requests": ["1"], "Accept": ["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"], "X-Forwarded-For": ["192.168.9.1"], "X-Forwarded-Proto": ["https"], "X-Forwarded-Host": ["hestia.bris.fr"], "If-Modified-Since": ["Sat, 08 Oct 2022 05:45:39 GMT"], "Sec-Ch-Ua": ["\"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"108\", \"Google Chrome\";v=\"108\""], "Accept-Language": ["en-US,en;q=0.9"], "Sec-Fetch-Site": ["same-origin"], "Sec-Fetch-User": ["?1"], "Sec-Ch-Ua-Mobile": ["?0"], "User-Agent": ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"], "Accept-Encoding": ["gzip, deflate, br"], "Sec-Fetch-Dest": ["document"], "Sec-Fetch-Mode": ["navigate"], "Cache-Control": ["max-age=0"]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "server_name": "hestia.bris.fr"}}, "headers": {}, "status": 304}
2022/12/20 07:47:46.950 DEBUG http.handlers.reverse_proxy selected upstream {"dial": "hestia.lan.bris.fr:8080", "total_upstreams": 1}
2022/12/20 07:47:46.957 DEBUG http.handlers.reverse_proxy upstream roundtrip {"upstream": "hestia.lan.bris.fr:8080", "duration": 0.00590415, "request": {"remote_ip": "192.168.9.1", "remote_port": "59747", "proto": "HTTP/2.0", "method": "GET", "host": "hestia.bris.fr", "uri": "/styles/default/custom.css", "headers": {"User-Agent": ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"], "Referer": ["https://hestia.bris.fr/"], "Sec-Fetch-Dest": ["style"], "X-Forwarded-For": ["192.168.9.1"], "X-Forwarded-Proto": ["https"], "Accept": ["text/css,*/*;q=0.1"], "Sec-Fetch-Site": ["same-origin"], "Sec-Fetch-Mode": ["no-cors"], "X-Forwarded-Host": ["hestia.bris.fr"], "Accept-Language": ["en-US,en;q=0.9"], "Sec-Ch-Ua-Platform": ["\"Windows\""], "Accept-Encoding": ["gzip, deflate, br"], "Sec-Ch-Ua": ["\"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"108\", \"Google Chrome\";v=\"108\""], "Sec-Ch-Ua-Mobile": ["?0"]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "server_name": "hestia.bris.fr"}}, "headers": {"Content-Encoding": ["gzip"], "Content-Type": ["text/css;charset=UTF-8"], "Content-Length": ["501"], "Access-Control-Allow-Origin": ["*"], "X-Xss-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"]}, "status": 200}
2022/12/20 07:47:46.996 DEBUG http.handlers.reverse_proxy selected upstream {"dial": "hestia.lan.bris.fr:8080", "total_upstreams": 1}
2022/12/20 07:47:47.004 DEBUG http.handlers.reverse_proxy upstream roundtrip {"upstream": "hestia.lan.bris.fr:8080", "duration": 0.006357028, "request": {"remote_ip": "192.168.9.1", "remote_port": "59747", "proto": "HTTP/2.0", "method": "GET", "host": "hestia.bris.fr", "uri": "/styles/default/custom.js", "headers": {"Sec-Fetch-Site": ["same-origin"], "Accept-Language": ["en-US,en;q=0.9"], "X-Forwarded-For": ["192.168.9.1"], "X-Forwarded-Host": ["hestia.bris.fr"], "Sec-Ch-Ua-Mobile": ["?0"], "Sec-Ch-Ua-Platform": ["\"Windows\""], "Accept": ["*/*"], "Referer": ["https://hestia.bris.fr/"], "User-Agent": ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"], "Accept-Encoding": ["gzip, deflate, br"], "X-Forwarded-Proto": ["https"], "Sec-Ch-Ua": ["\"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"108\", \"Google Chrome\";v=\"108\""], "Sec-Fetch-Mode": ["no-cors"], "Sec-Fetch-Dest": ["script"]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "server_name": "hestia.bris.fr"}}, "headers": {"Content-Type": ["application/javascript;charset=UTF-8"], "Content-Length": ["679"], "Access-Control-Allow-Origin": ["*"], "X-Content-Type-Options": ["nosniff"], "X-Xss-Protection": ["1; mode=block"], "Content-Encoding": ["gzip"]}, "status": 200}
2022/12/20 07:47:48.258 DEBUG http.handlers.reverse_proxy selected upstream {"dial": "hestia.lan.bris.fr:8080", "total_upstreams": 1}
2022/12/20 07:47:48.264 DEBUG http.handlers.reverse_proxy upstream roundtrip {"upstream": "hestia.lan.bris.fr:8080", "duration": 0.004524618, "request": {"remote_ip": "192.168.9.1", "remote_port": "59747", "proto": "HTTP/2.0", "method": "GET", "host": "hestia.bris.fr", "uri": "/service-worker.js", "headers": {"Sec-Fetch-Mode": ["same-origin"], "Sec-Fetch-Dest": ["serviceworker"], "Accept": ["*/*"], "X-Forwarded-For": ["192.168.9.1"], "X-Forwarded-Proto": ["https"], "X-Forwarded-Host": ["hestia.bris.fr"], "Accept-Encoding": ["gzip, deflate, br"], "Cache-Control": ["max-age=0"], "Service-Worker": ["script"], "Sec-Fetch-Site": ["same-origin"], "Referer": ["https://hestia.bris.fr/"], "User-Agent": ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"], "Accept-Language": ["en-US,en;q=0.9"]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "server_name": "hestia.bris.fr"}}, "headers": {"Content-Length": ["91"], "Content-Type": ["text/html;charset=UTF-8"], "Set-Cookie": []}, "status": 401}
2022/12/20 07:47:48.450 DEBUG http.handlers.reverse_proxy selected upstream {"dial": "hestia.lan.bris.fr:8080", "total_upstreams": 1}
2022/12/20 07:47:48.459 DEBUG http.handlers.reverse_proxy upstream roundtrip {"upstream": "hestia.lan.bris.fr:8080", "duration": 0.007820651, "request": {"remote_ip": "192.168.9.1", "remote_port": "59747", "proto": "HTTP/2.0", "method": "GET", "host": "hestia.bris.fr", "uri": "/json.htm?type=command¶m=getconfig", "headers": {"Sec-Ch-Ua": ["\"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"108\", \"Google Chrome\";v=\"108\""], "User-Agent": ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"], "X-Requested-With": ["XMLHttpRequest"], "X-Forwarded-Host": ["hestia.bris.fr"], "X-Forwarded-Proto": ["https"], "Sec-Fetch-Dest": ["empty"], "Accept-Language": ["en-US,en;q=0.9"], "Accept": ["application/json, text/javascript, */*; q=0.01"], "Sec-Fetch-Site": ["same-origin"], "Sec-Fetch-Mode": ["cors"], "Sec-Ch-Ua-Mobile": ["?0"], "X-Forwarded-For": ["192.168.9.1"], "Sec-Ch-Ua-Platform": ["\"Windows\""], "Referer": ["https://hestia.bris.fr/"], "Accept-Encoding": ["gzip, deflate, br"]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "server_name": "hestia.bris.fr"}}, "headers": {"Cache-Control": ["no-cache"], "Pragma": ["no-cache"], "Content-Encoding": ["gzip"], "Content-Length": ["294"], "Content-Type": ["application/json;charset=UTF-8"], "Access-Control-Allow-Origin": ["*"]}, "status": 200}
2022/12/20 07:47:48.490 DEBUG http.handlers.reverse_proxy selected upstream {"dial": "hestia.lan.bris.fr:8080", "total_upstreams": 1}
2022/12/20 07:47:48.497 DEBUG http.handlers.reverse_proxy upstream roundtrip {"upstream": "hestia.lan.bris.fr:8080", "duration": 0.005282978, "request": {"remote_ip": "192.168.9.1", "remote_port": "59747", "proto": "HTTP/2.0", "method": "GET", "host": "hestia.bris.fr", "uri": "/json.htm?type=command¶m=getversion", "headers": {"Sec-Fetch-Dest": ["empty"], "Accept-Language": ["en-US,en;q=0.9"], "X-Requested-With": ["XMLHttpRequest"], "Sec-Ch-Ua": ["\"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"108\", \"Google Chrome\";v=\"108\""], "Accept-Encoding": ["gzip, deflate, br"], "Accept": ["application/json, text/javascript, */*; q=0.01"], "Sec-Fetch-Mode": ["cors"], "X-Forwarded-Proto": ["https"], "X-Forwarded-Host": ["hestia.bris.fr"], "Sec-Ch-Ua-Platform": ["\"Windows\""], "Referer": ["https://hestia.bris.fr/"], "X-Forwarded-For": ["192.168.9.1"], "Sec-Ch-Ua-Mobile": ["?0"], "User-Agent": ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"], "Sec-Fetch-Site": ["same-origin"]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "server_name": "hestia.bris.fr"}}, "headers": {"Content-Type": ["application/json;charset=UTF-8"], "Content-Encoding": ["gzip"], "Content-Length": ["211"], "Cache-Control": ["no-cache"], "Pragma": ["no-cache"], "Access-Control-Allow-Origin": ["*"]}, "status": 200}
2022/12/20 07:47:48.508 DEBUG http.handlers.reverse_proxy selected upstream {"dial": "hestia.lan.bris.fr:8080", "total_upstreams": 1}
2022/12/20 07:47:48.514 DEBUG http.handlers.reverse_proxy upstream roundtrip {"upstream": "hestia.lan.bris.fr:8080", "duration": 0.005106219, "request": {"remote_ip": "192.168.9.1", "remote_port": "59747", "proto": "HTTP/2.0", "method": "GET", "host": "hestia.bris.fr", "uri": "/json.htm?type=command¶m=getauth", "headers": {"Sec-Fetch-Dest": ["empty"], "Accept-Encoding": ["gzip, deflate, br"], "Sec-Ch-Ua-Mobile": ["?0"], "User-Agent": ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"], "X-Forwarded-Host": ["hestia.bris.fr"], "X-Requested-With": ["XMLHttpRequest"], "Sec-Ch-Ua": ["\"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"108\", \"Google Chrome\";v=\"108\""], "Sec-Ch-Ua-Platform": ["\"Windows\""], "Sec-Fetch-Mode": ["cors"], "Referer": ["https://hestia.bris.fr/"], "X-Forwarded-For": ["192.168.9.1"], "X-Forwarded-Proto": ["https"], "Accept": ["application/json, text/javascript, */*; q=0.01"], "Sec-Fetch-Site": ["same-origin"], "Accept-Language": ["en-US,en;q=0.9"]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "server_name": "hestia.bris.fr"}}, "headers": {"Content-Length": ["73"], "Cache-Control": ["no-cache"], "Pragma": ["no-cache"], "Access-Control-Allow-Origin": ["*"], "Content-Type": ["application/json;charset=UTF-8"]}, "status": 200}
2022/12/20 07:47:48.660 DEBUG http.handlers.reverse_proxy selected upstream {"dial": "hestia.lan.bris.fr:8080", "total_upstreams": 1}
2022/12/20 07:47:48.668 DEBUG http.handlers.reverse_proxy upstream roundtrip {"upstream": "hestia.lan.bris.fr:8080", "duration": 0.006364252, "request": {"remote_ip": "192.168.9.1", "remote_port": "59747", "proto": "HTTP/2.0", "method": "GET", "host": "hestia.bris.fr", "uri": "/json.htm?type=command¶m=getlanguage", "headers": {"Sec-Fetch-Dest": ["empty"], "User-Agent": ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"], "Accept-Language": ["en-US,en;q=0.9"], "Accept": ["application/json, text/javascript, */*; q=0.01"], "Sec-Ch-Ua-Mobile": ["?0"], "Sec-Fetch-Mode": ["cors"], "X-Forwarded-For": ["192.168.9.1"], "X-Requested-With": ["XMLHttpRequest"], "Sec-Fetch-Site": ["same-origin"], "Referer": ["https://hestia.bris.fr/"], "Accept-Encoding": ["gzip, deflate, br"], "Sec-Ch-Ua-Platform": ["\"Windows\""], "X-Forwarded-Proto": ["https"], "X-Forwarded-Host": ["hestia.bris.fr"], "Sec-Ch-Ua": ["\"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"108\", \"Google Chrome\";v=\"108\""]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "server_name": "hestia.bris.fr"}}, "headers": {"Content-Length": ["67"], "Access-Control-Allow-Origin": ["*"], "Content-Type": ["application/json;charset=UTF-8"], "Cache-Control": ["no-cache"], "Pragma": ["no-cache"]}, "status": 200}
2022/12/20 07:47:49.631 DEBUG http.handlers.reverse_proxy selected upstream {"dial": "hestia.lan.bris.fr:8080", "total_upstreams": 1}
2022/12/20 07:47:49.643 DEBUG http.handlers.reverse_proxy upstream roundtrip {"upstream": "hestia.lan.bris.fr:8080", "duration": 0.010498881, "request": {"remote_ip": "192.168.9.1", "remote_port": "59738", "proto": "HTTP/2.0", "method": "GET", "host": "hestia.bris.fr", "uri": "/service-worker.js", "headers": {"Cache-Control": ["max-age=0"], "Referer": ["https://hestia.bris.fr/service-worker.js"], "Sec-Fetch-Dest": ["serviceworker"], "Accept-Language": ["en-US,en;q=0.9,fr;q=0.8"], "Sec-Fetch-Mode": ["same-origin"], "X-Forwarded-For": ["192.168.9.1"], "X-Forwarded-Host": ["hestia.bris.fr"], "User-Agent": ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"], "Accept-Encoding": ["gzip, deflate, br"], "Accept": ["*/*"], "Sec-Fetch-Site": ["same-origin"], "X-Forwarded-Proto": ["https"], "Service-Worker": ["script"], "Cookie": []}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "server_name": "hestia.bris.fr"}}, "headers": {"Content-Length": ["1055"], "Cache-Control": ["no-cache"], "Access-Control-Allow-Origin": ["*"], "Content-Encoding": ["gzip"], "Pragma": ["no-cache"], "Content-Type": ["application/javascript;charset=UTF-8"]}, "status": 200}
from as small Caddyfile
#
{
debug
}
hestia.bris.fr {
@is_local remote_ip 192.168.9.0/24
handle @is_local {
reverse_proxy "http://hestia.lan.bris.fr:8080"
}
}