summaryrefslogtreecommitdiffstats
path: root/custom
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2021-03-16 00:27:28 +0200
committerGitHub <noreply@github.com>2021-03-16 00:27:28 +0200
commit044cd4d016196e8c7091eee90b7e6f230bba142f (patch)
tree35f060380813f99588966339c5ddf796a8b8c451 /custom
parent6e423d5573c20b78d6e21cb044e8f4d5de5b288a (diff)
downloadgitea-044cd4d016196e8c7091eee90b7e6f230bba142f.tar.gz
gitea-044cd4d016196e8c7091eee90b7e6f230bba142f.zip
Add reverse proxy configuration support for remote IP address (#14959)
* Add reverse proxy configuration support for remote IP address validation * Trust all IP addresses in containerized environments by default * Use single option to specify networks and proxy IP addresses. By default trust all loopback IPs Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'custom')
-rw-r--r--custom/conf/app.example.ini4
1 files changed, 4 insertions, 0 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini
index 6edf09e8ae..fe4fec7e92 100644
--- a/custom/conf/app.example.ini
+++ b/custom/conf/app.example.ini
@@ -549,6 +549,10 @@ COOKIE_REMEMBER_NAME = gitea_incredible
; Reverse proxy authentication header name of user name
REVERSE_PROXY_AUTHENTICATION_USER = X-WEBAUTH-USER
REVERSE_PROXY_AUTHENTICATION_EMAIL = X-WEBAUTH-EMAIL
+; Interpret X-Forwarded-For header or the X-Real-IP header and set this as the remote IP for the request
+REVERSE_PROXY_LIMIT = 1
+; List of IP addresses and networks seperated by comma of trusted proxy servers. Use `*` to trust all.
+REVERSE_PROXY_TRUSTED_PROXIES = 127.0.0.0/8,::1/128
; The minimum password length for new Users
MIN_PASSWORD_LENGTH = 6
; Set to true to allow users to import local server paths
/a> 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Mon 26JanTest application details - by chrisv from #3863 (Viewport test)</title>
<link href="css/styling.css" rel="stylesheet" type="text/css">
<style type="text/css">
label {
	float: left;
	min-width: 12em;
}
tr.rule-above td {
	border-top: solid 1px #CCCCCC;
	margin-top: 1em;
}
</style>
<link rel="stylesheet" href="../../../themes/base/ui.all.css" type="text/css">
<script type="text/javascript" src="../../../jquery-1.3.2.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.datepicker.js"></script>
<style type="text/css">
label.error {
	color: #ff4c00;
	font-style: italic;
}
input.error {
	border: 1px dotted red;
}

</style>
<style type="text/css">
.ui-datepicker {
	font-size: 80%;
}
</style>
<script type="text/javascript">  /* configure date picker */
$(function() {
  $(".datepicker").datepicker({ 
    dateFormat: 'd M yy', 
    firstDay: 1, 
    changeMonth: false, changeYear: false, 
    showOtherMonths: true,
    mandatory: true
  });
});
</script>
</head>
<body>
<div id="container">
  <div id="center" class="column">
    <h2>Mon 26JanTest</h2>
    <h3>Application progress</h3>
    <form name="frm" id="frm" method="post" action="">

      <table>
        <tr>
          <td><label for="Firstname">First name:</label></td>
          <td><input name="Firstname" id="Firstname"  size="12" value="Mon"></td>
        </tr>
        <tr>
          <td><label for="Lastname">Last name:</label></td>
          <td><input name="Lastname" id="Lastname" size="12" value="26JanTest"></td>

        </tr>
        <tr>
          <td><label for="Email">Email:</label></td>
          <td><input name="Email" id="Email" size="18" value="x@y.com"></td>
        </tr>
        <tr>
          <td><label for="RegionalMentorID">Responsible RM:</label></td>
          <td><select name="RegionalMentorID" id="RegionalMentorID">

              <option value=""></option>
            </select>
          </td>
        </tr>
        <tr>
          <td><label for="Status">Status:</label></td>
          <td><select name="Status" id="Status">
              <option selected value="Active">Active</option>

              <option  value="Dropped out">Dropped out</option>
              <option  value="Completed">Completed</option>
            </select>
          </td>
        </tr>
        <tr class="rule-above">
          <td>Applic’n rec’d</td>

          <td><input type="text" name="ApplicationReceivedOn" id="ApplicationReceivedOn" value="26 Jan 2009" class="datepicker" size="12" title="Enter date"></td>
        </tr>
        <tr class="rule-above">
          <td>Stage 1 mtg</td>
          <td><input type="text" name="Stage1MtgOnD" id="Stage1MtgOnD" value="27 Jan 2009" class="datepicker" size="12" title="Enter date">
            <input type="text" name="Stage1MtgOnT" id="Stage1MtgOnT" value="11:00" size="4" title="Enter time">
            @
            <input name="Stage1MtgAt" id="Stage1MtgAt" value="someplace">
          </td>

        </tr>
        <tr>
          <td>&nbsp;</td>
          <td><label>Confirmed on</label>
            <input type="text" name="Stage1MtgConfirmedOn" id="Stage1MtgConfirmedOn" value="26 Jan 2009" class="datepicker" size="12" title="Enter date">
          </td>
        </tr>
        <tr>

          <td>&nbsp;</td>
          <td><label>Attended</label>
            <input type="radio" name="Stage1MtgAttended" id="Stage1MtgAttendedY"  value="Y">
            Yes
            <input type="radio" name="Stage1MtgAttended" id="Stage1MtgAttendedY" checked value="N">
            No </td>
        </tr>
        <tr>

          <td>&nbsp;</td>
          <td><label>Hard-copy given</label>
            <input name="Stage1HardCopyGiven" type="radio"  value="Y">
            Yes
            <input name="Stage1HardCopyGiven" type="radio" checked value="N">
            No </td>
        </tr>
        <tr>

          <td>&nbsp;</td>
          <td><br>
            <label>Handover on</label>
            <input type="text" name="Stage1HandoverOn" id="Stage1HandoverOn" value="26 Jan 2009" class="datepicker" size="12" title="Enter date">
          </td>
        </tr>
        <tr class="rule-above">
          <td>Stage 2 mtg</td>

          <td><input type="text" name="Stage2MtgOnD" id="Stage2MtgOnD" value="28 Jan 2009" class="datepicker" size="12" title="Enter date">
            <input type="text" name="Stage2MtgOnT" id="Stage2MtgOnT" value="11:00" size="4" title="Enter time">
            @
            <input name="Stage2MtgAt" id="Stage2MtgAt" value="someplace">
            <br>
            <label>Confirmed on</label>
            <input type="text" name="Stage2MtgConfirmedOn" id="Stage2MtgConfirmedOn" value="26 Jan 2009" class="datepicker" size="12" title="Enter date">
            <br>
            <label>Contacts:</label>

            <i></i> <br>
            <label>Postcode areas:</label>
            <i></i> <br>
            <label>Document explanations given</label>
            <input name="Stage2DocExplanGiven" type="radio"  value="Y">
            Yes
            <input name="Stage2DocExplanGiven" type="radio" checked value="N">

            No <br>
            <label>Franchisee contacts given</label>
            <input name="Stage2ContactFranchiseesGiven" type="radio"  value="Y">
            Yes
            <input name="Stage2ContactFranchiseesGiven" type="radio" checked value="N">
            No <br>
            <label>Finance options given</label>

            <input name="Stage2FinanceOptionsGiven" type="radio"  value="Y">
            Yes
            <input name="Stage2FinanceOptionsGiven" type="radio" checked value="N">
            No <br>
            <label>Financials given</label>
            <input name="Stage2FinancialsGiven" type="radio"  value="Y">
            Yes
            <input name="Stage2FinancialsGiven" type="radio" checked value="N">
            No <br>

            <label>Business plan given</label>
            <input name="Stage2BusinessPlanGiven" type="radio"  value="Y">
            Yes
            <input name="Stage2BusinessPlanGiven" type="radio" checked value="N">
            No <br>
            <label>Agreement given</label>
            <input name="Stage2AgreementGiven" type="radio"  value="Y">
            Yes
            <input name="Stage2AgreementGiven" type="radio" checked value="N">

            No <br>
            <label>Disclosure letter given</label>
            <input name="Stage2DisclosureLetterGiven" type="radio"  value="Y">
            Yes
            <input name="Stage2DisclosureLetterGiven" type="radio" checked value="N">
            No <br>
            <label>Medical letter given</label>

            <input name="Stage2MedicalLetterGiven" type="radio"  value="Y">
            Yes
            <input name="Stage2MedicalLetterGiven" type="radio" checked value="N">
            No <br>
            <label>Attended</label>
            <input name="Stage2MtgAttended" type="radio"  value="Y">
            Yes
            <input name="Stage2MtgAttended" type="radio" checked value="N">
            No </td>

        </tr>
        <tr class="rule-above">
          <td>Site visit</td>
          <td><input type="text" name="SiteVisitOnD" id="SiteVisitOnD" value="29 Jan 2009" class="datepicker" size="12" title="Enter date">
            <input type="text" name="SiteVisitOnT" id="SiteVisitOnT" value="13:00" size="4" title="Enter time">
            @
            <input name="SiteVisitAt" id="SiteVisitAt" value="somewhere else">
            <br>
            <label>Site visit contact</label>

            <br>
            <label>Confirmed on</label>
            <input type="text" name="SiteVisitConfirmedOn" id="SiteVisitConfirmedOn" value="26 Jan 2009" class="datepicker" size="12" title="Enter date">
            <br>
            <label>Attended</label>
            <input name="SiteVisitAttended" type="radio"  value="Y">
            Yes
            <input name="SiteVisitAttended" type="radio" checked value="N">

            No </td>
        </tr>
        <tr class="rule-above">
          <td>Director interview</td>
          <td><input type="text" name="DirectorInterviewOnD" id="DirectorInterviewOnD" value="30 Jan 2009" class="datepicker" size="12" title="Enter date">
            <input type="text" name="DirectorInterviewOnT" id="DirectorInterviewOnT" value="13:00" size="4" title="Enter time">
            @
            <input name="DirectorInterviewAt" id="DirectorInterviewAt" value="boss pad">

            <br>
            <label>Confirmed on</label>
            <input type="text" name="DirectorInterviewConfirmedOn" id="DirectorInterviewConfirmedOn" value="26 Jan 2009" class="datepicker" size="12" title="Enter date">
            <br>
            <label>Attended</label>
            <input name="DirectorInterviewAttended" type="radio"  value="Y">
            Yes
            <input name="DirectorInterviewAttended" type="radio" checked value="N">

            No <br>
            <label>Financials Recd</label>
            <input name="DirectorFinancialsRecd" type="radio"  value="Y">
            Yes
            <input name="DirectorFinancialsRecd" type="radio" checked value="N">
            No <br>
            <label>Business plan Recd</label>

            <input name="DirectorBusinessPlanRecd" type="radio"  value="Y">
            Yes
            <input name="DirectorBusinessPlanRecd" type="radio" checked value="N">
            No <br>
            <label>Agreement Recd</label>
            <input name="DirectorAgreementRecd" type="radio"  value="Y">
            Yes
            <input name="DirectorAgreementRecd" type="radio" checked value="N">
            No <br>

            <label>Disclosure letter Recd</label>
            <input name="DirectorDisclosureLetterRecd" type="radio"  value="Y">
            Yes
            <input name="DirectorDisclosureLetterRecd" type="radio" checked value="N">
            No <br>
            <label>Medical letter Recd</label>
            <input name="DirectorMedicalLetterRecd" type="radio"  value="Y">
            Yes
            <input name="DirectorMedicalLetterRecd" type="radio" checked value="N">

            No <br>
            <label>Accept/decline sent on</label>
            <input type="text" name="AcceptDeclineLetterSentOn" id="AcceptDeclineLetterSentOn" value="26 Jan 2009" class="datepicker" size="12" title="Enter date">
          </td>
        </tr>
      </table>
    </form>
  </div>

</div>
<!-- 11ms -->
</body>
</html>