rwth-acis / mobsos-surveys

A simple survey management service and Web application, being part of the MobSOS toolkit.
Other
7 stars 10 forks source link

Make nginx accessible #23

Closed Navidda closed 3 years ago

Navidda commented 3 years ago

Summary

The nginx that serves the static data of the service is not accessible from outside

Details

After getting a shell from the node it seems that the nginx itself is up and running and the static files are there. But trying to access it using url (for example https://surveys.tech4comp.dbis.rwth-aachen.de/css/flags.css will show a message of Sorry! There is Nothing Here

Possible Solution

Check the kubernetes settings (e.g. Ingress, Service and Deployment)

Navidda commented 3 years ago

The nginx issue is finally solved and now the service is working fine and pretty fast. It reduced the page loading time from 9 seconds to 1 second.

There was also an error in the surveys ingress which would cause only the main page of the service be served and block all other urls. This one got fixed by the following changes:

path: /$(.*) --> /(.*) rewrite-target: /mobsos-surveys/$2 --> /mobsos-surveys/$1