Skip to content

Commit 0ccbecd

Browse files
author
Joshua Mayanja
committed
Added Nginx Configuration
1 parent 9f1ecee commit 0ccbecd

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

nginx/spam.conf

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# DrexSpamAPI Nginx Web Server configuration
2+
# for Nginx and proxies requests for these domains to localhost port 8002
3+
4+
server {
5+
listen 80;
6+
listen [::]:80;
7+
8+
server_name spam.drexsoft.org;
9+
access_log /var/log/nginx/spamapi.access;
10+
error_log /var/log/nginx/spamapi.error;
11+
12+
location / {
13+
proxy_set_header X-Real-IP $remote_addr;
14+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
15+
proxy_set_header HOST $http_host;
16+
proxy_set_header X-NginX-Proxy true;
17+
18+
proxy_pass http://127.0.0.1:8002;
19+
proxy_redirect off;
20+
}
21+
}

0 commit comments

Comments
 (0)