add ms headers to proxy

This commit is contained in:
Torma Kristóf 2022-05-04 19:10:43 +02:00
parent 2776cfcadf
commit b9f37b2d5b
2 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,8 @@ http {
proxy_redirect off; proxy_redirect off;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-MS-Proxy webgateway.intra.tormakris.dev;
proxy_set_header X-MS-Forwarded-Client-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection; proxy_set_header Connection $http_connection;

View File

@ -8,6 +8,8 @@ proxy:
- {domain: nexus.kmlabz.com, ip: nexus.intra.tormakris.dev} - {domain: nexus.kmlabz.com, ip: nexus.intra.tormakris.dev}
- {domain: registry.kmlabz.com, ip: nexus.intra.tormakris.dev} - {domain: registry.kmlabz.com, ip: nexus.intra.tormakris.dev}
- {domain: swagger.kmlabz.com, ip: swagger.intra.tormakris.dev} - {domain: swagger.kmlabz.com, ip: swagger.intra.tormakris.dev}
- {domain: fs.tormakris.dev, ip: adfs.intra.tormakris.dev}
- {domain: certauth.fs.tormakris.dev, ip: adfs.intra.tormakris.dev}
static: static:
- {domain: kmlabz.com, directory: /var/www/kmlabz.com, repo: "https://git.kmlabz.com/kmlabz/homepage.git"} - {domain: kmlabz.com, directory: /var/www/kmlabz.com, repo: "https://git.kmlabz.com/kmlabz/homepage.git"}