ART-DECOR installation nginx https example
Example NGINX HTTPS config
Reroute all HTTPS /art-decor traffic to Tomcat, and other paths to eXist-db. Since we assume that Tomcat and eXist-db are running on the same host as NGINX, all paths can be localhost URLs.
server {
listen ssl;
server_name <<YOUR PUBLIC URL>>;
# point these values to your own certificate and private key
ssl_certificate www.example.com.crt;
ssl_certificate_key www.example.com.key;
# for production use, check out NGINX documentation on configuring ssl_protocols and such
# For larger requests like writing large valuesets, increase this value
# client_max_body_size 128m;
access_log logs/proxy_access_ssl_log;
error_log logs/error.log warn;
location / {
# could point to /art-decor, on your own website running on /
}
# rewrite /art-decor to orbeon port 8080/art-decor
location /art-decor {
proxy_pass http://localhost:8080/art-decor;
}
# end of location /art-decor
### art-decor packages
# rewrite /art to to port 8877/
location /art {
proxy_pass http://localhost:8877/art;
}
# end of location /art
# rewrite /decor to port 8877/
location /decor/ {
proxy_pass http://localhost:8877/decor/;
}
# end of location /decor
# rewrite /decor/services to port 8877/
location /decor/services {
proxy_pass http://localhost:8877/decor/services;
}
# end of location /decor/services
# rewrite /fhir to port 8877/
location /fhir/ {
proxy_pass http://localhost:8877/fhir/;
}
# end of location /fhir
# rewrite /services to port 8877/
location /services {
proxy_pass http://localhost:8877/decor/services;
}
# end of location /services
# rewrite /temple to port 8877/
location /temple {
proxy_pass http://localhost:8877/temple;
}
# end of location /temple
# rewrite /terminology to port 8877/
location /terminology {
proxy_pass http://localhost:8877/terminology;
}
# end of location /terminology
# rewrite /xis to port 8877/
location /xis {
proxy_pass http://localhost:8877/xis;
}
# end of location /xis
}
# end of decor server block