summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar steering72532026-04-26 09:31:36 -0600
committerGravatar steering72532026-04-26 09:31:36 -0600
commit64b1b540aa40a617ab30616cab7bee9137219100 (patch)
tree69c3b62a4b90ff98918cd765a90add2c1e8d6d40
parentinit (diff)
i2p
-rw-r--r--nginx.conf11
-rw-r--r--server.conf2
2 files changed, 10 insertions, 3 deletions
diff --git a/nginx.conf b/nginx.conf
index e339876..cef5a76 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -20,12 +20,12 @@ http {
'"$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent" '
'"$gzip_ratio" handler=$sent_http_handler';
- log_format i2p
+ log_format i2pd
'$remote_addr - $remote_user [$time_local] '
'"$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent" '
'"$gzip_ratio" '
- '"$http_x_i2p_destb32" "$http_x_i2p_desthash" "$http_x_i2p_destb64"';
+ '"$http_host" "$http_x_i2p_destb32" "$http_x_i2p_desthash" "$http_x_i2p_destb64"';
client_header_timeout 10m;
client_body_timeout 10m;
@@ -98,6 +98,13 @@ http {
}
server {
+ listen 127.0.0.1:3275;
+ server_name cgit.i2p cgitiek6febqkrplowpeqssm6cur3fk6de76oajer7dqixw2pwkq.i2p cgitiek6febqkrplowpeqssm6cur3fk6de76oajer7dqixw2pwkq.b32.i2p;
+
+ include server.conf;
+ }
+
+ server {
listen unix:/var/run/tor/dn42.sock;
server_name dn422hid5ejv7p67nw3nvn3uoqhxrr57hsagg2yxwsn72vuxwgi5veyd.onion;
diff --git a/server.conf b/server.conf
index 0b5029e..de6ab08 100644
--- a/server.conf
+++ b/server.conf
@@ -1,5 +1,5 @@
http2 on;
-access_log /var/log/nginx/access.log main;
+access_log /var/log/nginx/access.log i2pd;
location /.well-known/ {
root /var/www/localhost/htdocs;