mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-09 09:38:00 +08:00
Referrer-Policy, Content-Security-Policy
This commit is contained in:
@@ -125,58 +125,89 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="form-check mb-2">
|
||||
<input class="form-check-input" type="checkbox" id="index_html" ng-model="data.index_html">
|
||||
<label class="form-check-label" for="index_html">
|
||||
<span tooltips tooltip-template="Pass unhandled requests to index.html.<br><br><i>Angular, React, Vue.js, Ember.js</i>...">index.html <small>handler</small></span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="form-group">
|
||||
<label class="form-label">
|
||||
<span tooltips tooltip-template="PHP-FPM via TCP or unix socket.">PHP</span>
|
||||
</label>
|
||||
<select class="form-control" ng-model="data.php">
|
||||
<option value="off">disabled</option>
|
||||
<option value="tcp">TCP</option>
|
||||
<option value="5.x">5.x socket</option>
|
||||
<option value="7.0">7.0 socket</option>
|
||||
<option value="7.1">7.1 socket</option>
|
||||
<option value="7.2">7.2 socket</option>
|
||||
<option value="7.3">7.3 socket</option>
|
||||
</select>
|
||||
<div class="input-group" tooltips tooltip-template="PHP-FPM via TCP or unix socket.">
|
||||
<div class="input-group-prepend">
|
||||
<div class="input-group-text">PHP</div>
|
||||
</div>
|
||||
<select class="form-control" ng-model="data.php">
|
||||
<option value="off">disabled</option>
|
||||
<option value="tcp">TCP</option>
|
||||
<option value="5.x">5.x socket</option>
|
||||
<option value="7.0">7.0 socket</option>
|
||||
<option value="7.1">7.1 socket</option>
|
||||
<option value="7.2">7.2 socket</option>
|
||||
<option value="7.3">7.3 socket</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-check" ng-if="isPHP()">
|
||||
<input class="form-check-input" type="checkbox" id="index_php" ng-model="data.index_php">
|
||||
<label class="form-check-label" for="index_php">
|
||||
<span tooltips tooltip-template="Pass unhandled requests to index.php.<br><br><i>Laravel, Lumen, Symfony, Zend, CodeIgniter, Yii, CakePHP, Slim...</i>">index.php <small>handler</small></span>
|
||||
</label>
|
||||
<div class="form-subgroup" ng-if="isPHP()">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" id="index_php" ng-model="data.index_php">
|
||||
<label class="form-check-label" for="index_php">
|
||||
<span tooltips tooltip-template="Pass unhandled requests to index.php.<br><br><i>Laravel, Lumen, Symfony, Zend, CodeIgniter, Yii, CakePHP, Slim...</i>">index.php <small>handler</small></span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-check" ng-if="isPHP()">
|
||||
<input class="form-check-input" type="checkbox" id="wordpress" ng-model="data.wordpress">
|
||||
<label class="form-check-label" for="wordpress">
|
||||
<span tooltips tooltip-template="WordPress security rules and login limiting <i>(if enabled)</i>.">WordPress</span>
|
||||
</label>
|
||||
<div class="form-subgroup" ng-if="isPHP()">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" id="wordpress" ng-model="data.wordpress">
|
||||
<label class="form-check-label" for="wordpress">
|
||||
<span tooltips tooltip-template="WordPress security rules and login limiting <i>(if enabled)</i>.">WordPress</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<label class="form-label">File structure</label>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" id="unified" ng-model="data.file_structure" value="unified">
|
||||
<label class="form-check-label" for="unified">
|
||||
<span tooltips tooltip-template="Combine configuration to a single file.<br><br><i>(if possible)</i>">unified</span>
|
||||
</label>
|
||||
<div class="form-subgroup">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" id="unified" ng-model="data.file_structure" value="unified">
|
||||
<label class="form-check-label" for="unified">
|
||||
<span tooltips tooltip-template="Combine configuration to a single file.<br><br><i>(if possible)</i>">unified</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" id="modularized" ng-model="data.file_structure" value="modularized">
|
||||
<label class="form-check-label" for="modularized">
|
||||
<span tooltips tooltip-template="Multiple configuration files<br><br><i>(ideal for multi-domain environment)</i>">modularized</span>
|
||||
</label>
|
||||
<div class="form-subgroup">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" id="modularized" ng-model="data.file_structure" value="modularized">
|
||||
<label class="form-check-label" for="modularized">
|
||||
<span tooltips tooltip-template="Multiple configuration files<br><br><i>(ideal for multi-domain environment)</i>">modularized</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="form-group">
|
||||
<label class="form-label"><code tooltips tooltip-template="Referrer Policy is a new header that allows a site to control how much information the browser includes with navigations away from a document and should be set by all sites.">Referrer-Policy</code></label>
|
||||
<select class="form-control form-control-sm" ng-model="data.referrer_policy">
|
||||
<option value="no-referrer">no-referrer</option>
|
||||
<option value="no-referrer-when-downgrade">no-referrer-when-downgrade</option>
|
||||
<option value="origin">origin</option>
|
||||
<option value="origin-when-cross-origin">origin-when-cross-origin</option>
|
||||
<option value="same-origin">same-origin</option>
|
||||
<option value="strict-origin">strict-origin</option>
|
||||
<option value="strict-origin-when-cross-origin">strict-origin-when-cross-origin</option>
|
||||
<option value="unsafe-url">unsafe-url</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label"><code tooltips tooltip-template="Content Security Policy is an effective measure to protect your site from XSS attacks. By whitelisting sources of approved content, you can prevent the browser from loading malicious assets.">Content-Security-Policy</code></label>
|
||||
<input type="text" class="form-control form-control-sm" ng-model="data.content_security_policy">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -184,7 +215,7 @@
|
||||
<div class="card-body">
|
||||
<div class="form-group">
|
||||
<label class="form-label"><code tooltips tooltip-template="Sets the maximum number of simultaneous connections that can be opened by a worker process.">worker_processes</code></label>
|
||||
<select class="form-control" ng-model="data.worker_processes">
|
||||
<select class="form-control form-control-sm" ng-model="data.worker_processes">
|
||||
<option value="auto">auto</option>
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
|
Reference in New Issue
Block a user