Comments (2)
It does look like I add an Nginx rule to redirect the YAML request to a new version of the file, which has the updated paths:
# we point to an updated copy of the OpenAPI YAML file which has updated paths
location /greenmail/greenmail-openapi.yml {
alias /path/to/modified/greenmail-openapi.yml;
}
So instead of the web server grabbing the greenmail-openapi.yml
file from the JAR, it grabs my modified copy.
This appears to make it all work correctly.
from greenmail.
Another option that worked for me was doing using the ngx_http_sub_module module in Nginx to just modify the response:
# this will re-write the YAML file and replace the locations with the actual path
sub_filter_once off;
sub_filter_types application/yaml;
sub_filter "/api/" "/greenmail/api/";
Since I've found a few workarounds, I'm closing this issue.
from greenmail.
Related Issues (20)
- Backport: Support configuring key password for custom TLS certificate
- Update container base image to azul/zulu-openjdk:8u392-jre
- Update jetty to 9.4.53.v20231009
- Update jersey to 2.41
- Update junit to 5.10.1
- Update easymock to 5.2.0
- Update spring.version to 5.3.31
- Update com.sun.activation:jakarta.activation to 1.2.2
- Support building using JDK 21
- greenmail-2.1.0 version release timeline HOT 2
- Extend standalone runner RESTful API for basic message listing
- Provide detailed error message when attempting to create user of existing email or login
- Mails with multiple recipients HOT 1
- OpenAPI UI is missing 'Get the messages for given user and folder' operation if started as Docker image with '2.0.1' tag HOT 1
- Do not preload hidden files and files in hidden folders HOT 1
- Authentication failed HOT 1
- Using `GreenMailExtension` in a Spring Boot Test, in Kotlin HOT 2
- IMAP Content-Type differs POP3 and IMAP HOT 3
- Setup Maven Wrapper
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from greenmail.