Skip to content

Commit

Permalink
Abuse contact footer root-gg#341
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles-Antoine Mathieu committed Nov 18, 2020
1 parent da0a73c commit cddc0c5
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/common/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ type Configuration struct {
NoWebInterface bool `json:"-"`
DownloadDomain string `json:"downloadDomain"`
EnhancedWebSecurity bool `json:"-"`
AbuseContact string `json:"abuseContact"`

SourceIPHeader string `json:"-"`
UploadWhitelist []string `json:"-"`
Expand Down
1 change: 1 addition & 0 deletions server/plikd.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ SslKey = "plik.key" # Path to your certificate private key file
NoWebInterface = false # Disable web user interface
DownloadDomain = "" # Enforce download domain ( ex : https://dl.plik.root.gg ) ( necessary for quick upload to work )
EnhancedWebSecurity = false # Enable additional security headers ( X-Content-Type-Options, X-XSS-Protection, X-Frame-Options, Content-Security-Policy, Secure Cookies, ... )
AbuseContact = "" # Abuse contact to be displayed in the footer of the webapp ( email address )

SourceIpHeader = "" # If behind reverse proxy ( ex : X-FORWARDED-FOR )
UploadWhitelist = [] # Restrict upload ans user creation to one or more IP range ( CIDR notation, /32 can be omitted )
Expand Down
10 changes: 10 additions & 0 deletions webapp/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,16 @@ header a:hover, header a:visited, header a:link, header a:active {
text-decoration: none;
}

footer {
position: absolute;
bottom: 0;
width: 100%;
/* Set the fixed height of the footer here */
height: 50px;
color: #FFFFFF;
font-family: 'Courgette', sans-serif;
}

.header-right {
margin-right: 20px;
}
Expand Down
6 changes: 6 additions & 0 deletions webapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ <h1><a href="#/_">Plik</a></h1>

<!-- ANGULARJS VIEW -->
<div ng-view class="container-fluid"></div>

<footer class="footer" ng-controller="MenuCtrl">
<div ng-if="config.abuseContact" class="container text-center">
<p>For abuse contact {{config.abuseContact}}</p>
</div>
</footer>
</div>
</div>

Expand Down

0 comments on commit cddc0c5

Please sign in to comment.