@blakearoberts/visage 0.0.1-rc.10 → 0.0.1-rc.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -0
- package/dist/render/nginx.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -230,6 +230,7 @@ const template = `
|
|
|
230
230
|
events {}
|
|
231
231
|
|
|
232
232
|
http {
|
|
233
|
+
log_format access_log_format '[$time_iso8601] $status | $request_method | $request_time | $auth_user | $request_uri | $proxy_host';
|
|
233
234
|
resolver 127.0.0.11 ipv6=off;
|
|
234
235
|
|
|
235
236
|
# Allow WebSockets (Vite HMR).
|
|
@@ -256,6 +257,9 @@ http {
|
|
|
256
257
|
ssl_certificate <%~ it.ssl.cert %>;
|
|
257
258
|
ssl_certificate_key <%~ it.ssl.key %>;
|
|
258
259
|
|
|
260
|
+
access_log /var/log/nginx/access.log access_log_format;
|
|
261
|
+
set $auth_user "-";
|
|
262
|
+
|
|
259
263
|
# Redirect accidental plaintext HTTP requests sent to the HTTPS port.
|
|
260
264
|
error_page 497 =301 https://$http_host$request_uri;
|
|
261
265
|
|
|
@@ -265,6 +269,7 @@ http {
|
|
|
265
269
|
<%_ if (location.auth?.enabled) { %>
|
|
266
270
|
auth_request /oauth2/auth;
|
|
267
271
|
auth_request_set $access_token $upstream_http_x_auth_request_access_token;
|
|
272
|
+
auth_request_set $auth_user $upstream_http_x_auth_request_user;
|
|
268
273
|
|
|
269
274
|
<%_ if (location.auth.redirect) { %>
|
|
270
275
|
error_page 401 =302 /oauth2/start?rd=$scheme://$http_host$request_uri;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nginx.d.ts","sourceRoot":"","sources":["../../src/render/nginx.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"nginx.d.ts","sourceRoot":"","sources":["../../src/render/nginx.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AA2E9C,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAI3D"}
|
package/package.json
CHANGED