diff --git a/conf/includes/Gogs.conf b/conf/includes/Gogs.conf new file mode 100644 index 0000000..b1680ef --- /dev/null +++ b/conf/includes/Gogs.conf @@ -0,0 +1,8 @@ +location / { + proxy_hide_header Authorization; + if ($http_Authorization != "Basic asdf") { + return 401; + } + proxy_set_header Authorization "Basic asdf"; + proxy_pass http://localhost:3000; +} \ No newline at end of file diff --git a/conf/nginx.conf b/conf/nginx.conf index b875486..c2f1fff 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -40,6 +40,11 @@ http { server_name localhost; include "includes/ProgramData.conf"; } + server { + listen 8011; + server_name localhost; + include "includes/Gogs.conf"; + } server { listen 8080; server_name ~(oi-metrology-viewer-archive).mes.infineon.com;