From 0605e733d9247deed243c76e73759953279c61e3 Mon Sep 17 00:00:00 2001 From: Thomas Hassenstein <2021544@stud.hs-mannheim.de> Date: Mon, 12 Jun 2023 14:35:11 +0200 Subject: [PATCH] =?UTF-8?q?Dateien=20hochladen=20nach=20=E2=80=9EREST?= =?UTF-8?q?=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /etc/nginx/sites-available/default hochladen von default konfigurationsdatei --- REST/default | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 REST/default diff --git a/REST/default b/REST/default new file mode 100644 index 0000000..fb20542 --- /dev/null +++ b/REST/default @@ -0,0 +1,25 @@ +server { + #listen 80; + #server_name 172.16.78.57; + #server_name _; + + listen 443 ssl; + server_name 172.16.78.57; + + ssl_certificate /etc/nginx/ssl/cert-gmtrom.pem; + ssl_certificate_key /etc/nginx/ssl/cert-gmtrom-key.pem; + + root /var/www/html; + index index.html; + + location /trng { + proxy_pass https://172.16.78.57:5000; # Weiterleitung an den Flask-Server + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + } + + location = /logomiddle.png { + alias /var/www/html/logomiddle.png; + } + +}