| summaryrefslogtreecommitdiff | 
diff options
Diffstat (limited to 'conf')
| -rw-r--r-- | conf/nginx.conf | 49 | 
1 files changed, 38 insertions, 11 deletions
| diff --git a/conf/nginx.conf b/conf/nginx.conf index 9fcfb0b..c91d76a 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -42,6 +42,7 @@ http {     index index.html; +   ## Local tests     server {        listen 127.0.0.1;        server_name localhost; @@ -63,18 +64,44 @@ http {        }     } -# SSL example -#server { -#	listen 127.0.0.1:443; -#	server_name localhost; +   ## Public tests +   server { +      listen 443; +      server_name tacticians.online; + +      ssl on; +      ssl_certificate /secure/tacticians.pem; +      ssl_certificate_key /secure/tacticians.key; -#	ssl on; -#	ssl_certificate /etc/ssl/nginx/nginx.pem; -#	ssl_certificate_key /etc/ssl/nginx/nginx.key; +      access_log /var/log/nginx/public.ssl_access_log main; +      error_log /var/log/nginx/public.ssl_error_log info; -#	access_log /var/log/nginx/localhost.ssl_access_log main; -#	error_log /var/log/nginx/localhost.ssl_error_log info; +      root /my/src/tacticians-client/www/; + +      location / { +         autoindex on; +         autoindex_exact_size off; +      } -#	root /var/www/localhost/htdocs; -#} +      location /handler/ { +         proxy_set_header Host $host; +         proxy_set_header X-Real-IP $remote_addr; +         proxy_pass http://127.0.0.1:8000; +      } +   } + +   ## Let's Encrypt Tests +   server { +      listen 80; +      server_name acme; + +       location /.well-known/acme-challenge/ +       { +           alias /var/www/challenges/; +           try_files $uri =404; +       } + +      access_log /var/log/nginx/acme.access_log main; +      error_log /var/log/nginx/acme.error_log info; +   }  } | 


