Database-BI

 view release on metacpan or  search on metacpan

website/html/install.html  view on Meta::CPAN

				<code>BI_ALERT_MESSAGE_FILE</code> set). It can be set only here, never
				from the browser. Unset, nothing leaves the machine.
			</td>
		</tr>
		<tr>
			<td><code>url_private_hosts</code></td>
			<td>unset</td>
			<td>
				Intranet names a <code>url:</code> source or Import from a web page may
				fetch although they resolve to a private address, such as
				<code>['reports.corp.example', '*.corp.example']</code>. See
				<a href="#url-fetch">Which addresses it may fetch</a>.
			</td>
		</tr>
		<tr>
			<td><code>listen</code></td>
			<td><code>http://127.0.0.1:3000</code></td>
			<td>
				Where the development server and <code>daemon</code> listen; this
				machine only unless it says <code>*</code>. hypnotoad has its own,
				defaulting to <code>http://127.0.0.1:8080</code>. See
				<a href="#listen">Run it</a>.
			</td>
		</tr>
		<tr>
			<td><code>cross_origin_opener_policy</code></td>
			<td><code>same-origin</code></td>
			<td>
				The Cross-Origin-Opener-Policy header on pages; <code>''</code> or
				<code>0</code> for none. See <a href="#csp">Content-Security-Policy</a>.
			</td>
		</tr>
		<tr>
			<td><code>permissions_policy</code></td>
			<td>every unused feature off</td>
			<td>
				The Permissions-Policy header; <code>''</code> or <code>0</code> for none.
				See <a href="#csp">Content-Security-Policy</a>.
			</td>
		</tr>
		<tr>
			<td><code>strict_transport_security</code></td>
			<td><code>max-age=31536000</code></td>
			<td>
				The Strict-Transport-Security header sent over https; <code>''</code> or
				<code>0</code> for none. See <a href="#csp">Content-Security-Policy</a>.
			</td>
		</tr>
		<tr>
			<td><code>embed_frame_ancestors</code></td>
			<td>unset</td>
			<td>
				Other sites that may show a canvas's <code>/embed/</code> page in a frame.
				See <a href="#embed">Embedding a canvas on another site</a>.
			</td>
		</tr>
		<tr>
			<td><code>ai_api_key</code></td>
			<td>unset</td>
			<td>
				Enables the natural-language question and summary endpoints. Off
				unless you set it; prompts carry column names and aggregate text only.
			</td>
		</tr>
		<tr>
			<td><code>ai_calls_per_hour</code></td>
			<td><code>60</code></td>
			<td>
				The most calls each server process makes to the AI provider in any hour,
				questions and summaries together, since each spends <code>ai_api_key</code>;
				<code>0</code> for no limit. Questions are at most 500 characters.
			</td>
		</tr>
	</tbody>
</table>
</div>

<h2>Serving your own D3 and Leaflet</h2>
<p>
	Chart pages load D3 from a CDN and map pages load Leaflet from unpkg by default.
	A deployment with no outbound network access, or one that prefers its own
	assets, points the keys at local copies under <code>public/</code>:
</p>
<pre><code>{
    d3_url                 => '/static/d3/d3.min.js',
    leaflet_js_url         => '/static/leaflet/leaflet.js',
    leaflet_css_url        => '/static/leaflet/leaflet.css',
    leaflet_cluster_js_url => '/static/leaflet/leaflet.markercluster.js',
    tile_url               => 'https://tiles.internal/{z}/{x}/{y}.png',
}</code></pre>
<p>
	That is <code>public/static/d3/d3.min.js</code> and so on. The versions to copy
	are the ones the defaults name: D3 7.9.0, Leaflet 1.9.4 and
	leaflet.markercluster 1.5.3. With <code>tile_url</code> set, every request
	needed to draw a map can stay on the local network.
</p>

<h2 id="csp">Content-Security-Policy</h2>
<p>
	Every HTML page is sent with a <code>Content-Security-Policy</code> header.
	The pages show cells from files this application did not write, so the policy
	backs up the escaping. Scripts, stylesheets and images may come only from this
	site and from the hosts named by <code>d3_url</code>, the
	<code>leaflet_*_url</code> keys, <code>tile_url</code> and
	<code>tile_sources</code>. With the defaults those are cdnjs.cloudflare.com,
	unpkg.com and OpenStreetMap's tile servers, so moving a library with the keys
	above moves the policy with it.
</p>
<p>
	A page's scripts may talk only to this site (<code>connect-src 'self'</code>),
	and no other site may show a page in a frame
	(<code>frame-ancestors 'self'</code>). JSON replies and downloads carry no policy.
	Every page also carries <code>X-Frame-Options: SAMEORIGIN</code>, whatever the
	keys below say, so framing by another site is refused even with a report-only
	policy, a policy of your own, or none, and in browsers that read only that header.
</p>
<p>
	Every reply also carries <code>Referrer-Policy: strict-origin-when-cross-origin</code>.
	Table specs, filter values and share tokens travel in the address, so another
	site, a CDN or the tile server is sent only this server's origin, never the
	whole address. It is not <code>no-referrer</code>, because OpenStreetMap asks



( run in 1.243 second using v1.01-cache-2.11-cpan-eb134014566 )