I build a module component with the type "public" (presentation channel). Now i want to write a configuration gui for it which isn't the problem but i have no idea how to read the config file in my class, because i have no ServerEnvironment. Is there a way to get the ServerEnvironment in my class (presentation channel)?
A way i can think of how to get the configuration is to write a service which provides it to my class but i think this is overkill.
There is no way to get the ServerEnvironment in your public component. One way would be to write a simple service that provides the configuration as you already guessed. Another possibility would be a project-app, but in this case the configuration would be project dependent.