Which legal aspects should I consider?

Please ensure before publishing, that you are authorized to do that. Basically you are authorized if you are the author or creator yourself and have not given exclusive rights to a third person or company. If you published parallelly at a professional publisher or plan to do that, please ensure, that the publisher allows you to make parallel publications on the universities electronic document repository.