We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f1ecee commit 0ccbecdCopy full SHA for 0ccbecd
nginx/spam.conf
@@ -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