https://github.com/swisscom/tomcat-external-configuration
External Tomcat configuration repository for the Cloud Foundry java buildpack
https://github.com/swisscom/tomcat-external-configuration
Last synced: 12 months ago
JSON representation
External Tomcat configuration repository for the Cloud Foundry java buildpack
- Host: GitHub
- URL: https://github.com/swisscom/tomcat-external-configuration
- Owner: swisscom
- License: apache-2.0
- Created: 2018-02-08T11:59:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-16T15:19:38.000Z (over 1 year ago)
- Last Synced: 2025-06-29T09:02:50.703Z (12 months ago)
- Language: Shell
- Size: 23.4 KB
- Stars: 0
- Watchers: 31
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# tomcat-external-configuration
External Tomcat configuration repository for the Cloud Foundry java buildpack.
Contains fixes that make `X-Forwarded-For` and `X-Forwarded-Proto` work even in our setup where we have gorouters running on 100.64/10 ranges and envoy running on 11.0/8 ranges.
To create the tars:
```
cd tar/tomcat7
tar czvf ../../repo/tomcat7/tomcat-external-configuration-1.0.x.tar.gz .
cd ../..
cd tar/tomcat8
tar czvf ../../repo/tomcat8/tomcat-external-configuration-1.0.x.tar.gz .
cd ../..
cd tar/tomcat9
tar czvf ../../repo/tomcat9/tomcat-external-configuration-1.0.x.tar.gz .
cd ../..
```
Then add the newly generated tars to `repo/tomcat{7,8,9}/index.yml` and push the app again.
You can set the variable <> in the index.yml file. This variable will be substituted on startup with the current host name assigned to this cf app (with the help of the .profile script). If you have new repos (e.g. a new tomcat version, you have to adapt this script as well)