diff --git a/conf/nginx/sites-available/robotoff-proxy b/conf/nginx/sites-available/robotoff-proxy deleted file mode 100644 index 7a10699d4dcca..0000000000000 --- a/conf/nginx/sites-available/robotoff-proxy +++ /dev/null @@ -1,73 +0,0 @@ -# -# You should look at the following URL's in order to grasp a solid understanding -# of Nginx configuration files in order to fully unleash the power of Nginx. -# http://wiki.nginx.org/Pitfalls -# http://wiki.nginx.org/QuickStart -# http://wiki.nginx.org/Configuration -# -# Generally, you will want to move this file somewhere, and start with a clean -# file but keep this around for reference. Or just disable in sites-enabled. -# -# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples. -## - -# Default server configuration -# - -server { - listen 80; - listen [::]:80; - server_name robotoff.openfoodfacts.org; - return 301 https://robotoff.openfoodfacts.org; -} - - -server { - - client_body_timeout 120s; - client_header_timeout 120s; - - # Product Opener needs a root domain + a wildcard for all subdomains - server_name robotoff.openfoodfacts.org; - - # SSL configuration - # - # listen 443 ssl default_server; - # listen [::]:443 ssl default_server; - # - # Self signed certs generated by the ssl-cert package - # Don't use them in a production server! - # - # include snippets/snakeoil.conf; - - # 13/09/2016: got error "nginx: [emerg] invalid parameter "http2" " - #listen 443 ssl http2 default_server; - listen 443 ssl http2; - #listen [::]:443 ssl http2 default_server; - listen [::]:443 ssl http2; - - include snippets/ssl.openfoodfacts.org; - include snippets/ssl-params.conf; - - root /srv/off/html; - - access_log /srv/off/logs/robotoff.nginx.access2.log; - error_log /srv/off/logs/robotoff.nginx.error2.log; - - gzip on; - gzip_min_length 1000; - - include snippets/ssl-headers.conf; - - location / { - proxy_pass http://off2.free.org$request_uri; - #proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto https; - proxy_read_timeout 90; - client_max_body_size 15M; - } -} - -