Skip to content

Instantly share code, notes, and snippets.

@tinyjin
Last active January 20, 2019 05:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tinyjin/7e317a944d033503929f346a466e73ea to your computer and use it in GitHub Desktop.
Save tinyjin/7e317a944d033503929f346a466e73ea to your computer and use it in GitHub Desktop.
/etc/nginx/conf.d/default.conf for Docker
server {
listen 80 default_server;
listen [::]:80 default_server;
client_max_body_size 1024M;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html index.php;
server_name _;
access_log /web/access.log;
error_log /web/error.log;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://was:8888/;
proxy_redirect off;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment