Skip to content

Commit

Permalink
add vhost to log format
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Dec 23, 2020
1 parent 6d76569 commit edaca74
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gitea/configuration.nix
Expand Up @@ -148,6 +148,11 @@ in {
recommendedProxySettings = true;
recommendedTlsSettings = true;

commonHttpConfig = ''
log_format vcombined '$host:$server_port $remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"';
access_log /var/log/nginx/access.log vcombined;
'';

virtualHosts."git.bytes.zone" = {
default = true;

Expand Down

0 comments on commit edaca74

Please sign in to comment.