Skip to content

Commit

Permalink
Cleenup
Browse files Browse the repository at this point in the history
  • Loading branch information
AliKhadivi committed Sep 12, 2022
1 parent c75e276 commit 6f09bb5
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 1,412 deletions.
62 changes: 0 additions & 62 deletions nginx/conf.d/doh.conf
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
# server{

# listen 8080;
# listen [::]:8080;
# server_name doh.fcms.ir;

# location / {
# # proxy_pass http://127.0.0.1:8053/;
# return https://doh.fcms.ir:${DOH_PORT}$request_uri;
# }
# }
upstream dohloop {
zone dohloop 64k;
server tariq-doh:8053;
Expand All @@ -28,18 +18,11 @@ server {
ssl_certificate_key /ssl/key.pem;
ssl_session_cache shared:ssl_cache:10m;
ssl_session_timeout 10m;
# server_name ${domain};

# DoH may use GET or POST requests, Cache both
proxy_cache_methods GET POST;

# Return 404 to all responses, except for those using our published DoH URI
# location / {
# return 404 "404 Not Found\n";
# }

# This is our published DoH URI
# location /dns-query {
location / {
# Proxy HTTP/1.1, clear the connection header to enable Keep-Alive
proxy_http_version 1.1;
Expand All @@ -51,48 +34,3 @@ server {
proxy_pass http://dohloop;
}
}

# server {
# listen 8080;
# location /api {
# api write=on;
# allow 127.0.0.1;
# # allow 192.168.64.1;
# deny all;
# }
# }

# server{

# listen ${DOH_PORT} ssl;
# listen [::]:${DOH_PORT} ssl;
# server_name ${domain};

# ssl_certificate ${cert_path};
# ssl_certificate_key ${key_path};
# ssl_dhparam ${dhparam_path};
# ssl_protocols TLSv1.2 TLSv1.3; # TLS 1.3 requires nginx >= 1.13.0
# ssl_prefer_server_ciphers on;
# ssl_ciphers EECDH+AESGCM:EDH+AESGCM;
# ssl_ecdh_curve secp384r1; # Requires nginx >= 1.1.0
# ssl_session_timeout 10m;
# ssl_session_cache shared:SSL:10m;
# ssl_session_tickets off; # Requires nginx >= 1.5.9
# ssl_stapling on; # Requires nginx >= 1.3.7
# ssl_stapling_verify on; # Requires nginx => 1.3.7
# ssl_early_data off; # 0-RTT, enable if desired - Requires nginx >= 1.15.4
# resolver 127.0.0.1 valid=300s; # Replace with your local resolver
# resolver_timeout 5s;
# # HTTP Security Headers
# add_header X-Frame-Options DENY;
# add_header X-Content-Type-Options nosniff;
# add_header X-XSS-Protection "1; mode=block";
# add_header Strict-Transport-Security "max-age=63072000";

# location / {
# proxy_pass http://127.0.0.1:8053/;
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $remote_addr;
# }
# }

2 changes: 1 addition & 1 deletion nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
user nginx;
worker_processes auto;

load_module modules/ngx_stream_js_module.so;
# load_module modules/ngx_stream_js_module.so;
# load_module modules/ngx_http_js_module.so;

error_log /var/log/nginx/error.log notice;
Expand Down
304 changes: 0 additions & 304 deletions nginx/njs.d/dns/dns.js

This file was deleted.

Loading

0 comments on commit 6f09bb5

Please sign in to comment.