feature: Show job owner/submitter. Resolves #2775

This commit is contained in:
Jason Ertel
2021-03-10 14:44:21 -05:00
parent 3eb4a37c76
commit eefa6bb949

View File

@@ -25,8 +25,8 @@ events {
http { http {
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" ' '$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"'; '"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main; access_log /var/log/nginx/access.log main;
@@ -172,6 +172,8 @@ http {
location / { location / {
auth_request /auth/sessions/whoami; auth_request /auth/sessions/whoami;
auth_request_set $userid $upstream_http_x_kratos_authenticated_identity_id;
proxy_set_header x-user-id $userid;
proxy_pass http://{{ manager_ip }}:9822/; proxy_pass http://{{ manager_ip }}:9822/;
proxy_read_timeout 90; proxy_read_timeout 90;
proxy_connect_timeout 90; proxy_connect_timeout 90;
@@ -231,15 +233,15 @@ http {
} }
{%- if airgap is sameas true %} {%- if airgap is sameas true %}
location /repo/ { location /repo/ {
allow all; allow all;
sendfile on; sendfile on;
sendfile_max_chunk 1m; sendfile_max_chunk 1m;
autoindex on; autoindex on;
autoindex_exact_size off; autoindex_exact_size off;
autoindex_format html; autoindex_format html;
autoindex_localtime on; autoindex_localtime on;
} }
{%- endif %} {%- endif %}
location /grafana/ { location /grafana/ {