Skip to content
Snippets Groups Projects
Select Git revision
  • 79bed0d4bb424ff4c4818a9acc0e42c93a9bd06b
  • develop default protected
  • met-opti-big-data
  • geocontrib-nuxt3
  • redmine-issues/25708
  • 5.4.X
  • 5.5.X
  • redmine-issues/21034
  • license
  • 5.3.X
  • 5.2.X
  • 5.0.X
  • 4.2.X
  • 5.1.X
  • main
  • 3.3.x
  • 2.3.x protected
  • 3.0.X
  • master protected
  • migration-openlayers
  • 6.5.0 protected
  • 6.4.5-rc9 protected
  • 6.4.5-rc8 protected
  • 6.4.5-rc7 protected
  • 6.4.5-rc6 protected
  • 6.4.5-rc5 protected
  • 6.4.5-rc4 protected
  • 6.4.5-rc3 protected
  • 6.4.5-rc1 protected
  • 6.4.5-rc2 protected
  • 6.4.4 protected
  • 6.4.4-rc4 protected
  • 6.4.4-rc3 protected
  • 6.4.4-rc2 protected
  • 6.4.4-rc1 protected
  • 6.4.3 protected
  • 6.4.2 protected
  • 6.4.2-rc1 protected
  • 6.4.1 protected
  • 6.4.1-rc1 protected
40 results

nginx.conf

Blame
  • user avatar
    Sébastien DA ROCHA authored
    fd5e26ab
    History
    nginx.conf 1.68 KiB
    upstream geocontrib_site {
        server geocontrib:5000;
    }
    
    server {
        listen 80;
        charset utf-8;
        server_name  127.0.0.1;
        root /usr/share/nginx/html;
    
        client_max_body_size 4G;
    
        location = / {
            absolute_redirect off;
            return 301 /geocontrib/ ;
        }
    
        location /geocontrib/api {
            proxy_pass_header Set-Cookie;
            proxy_set_header X-NginX-Proxy true;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header Host $host;
            proxy_read_timeout 300s;
            proxy_redirect off;
        
            proxy_pass http://geocontrib_site;
        }
    
        location /geocontrib/cas {
            proxy_pass_header Set-Cookie;
            proxy_set_header X-NginX-Proxy true;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header Host $host;
            proxy_read_timeout 300s;
            proxy_redirect off;
        
            proxy_pass http://geocontrib_site;
        }
    
        location /geocontrib/admin {
            proxy_pass_header Set-Cookie;
            proxy_set_header X-NginX-Proxy true;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header Host $host;
            proxy_read_timeout 300s;
            proxy_redirect off;
        
            proxy_pass http://geocontrib_site;
        }
    
        location /geocontrib/static/ {
            alias /opt/geocontrib/static/;
        }
    
        location /geocontrib/media/ {
            alias /opt/geocontrib/media/;
        }
    
        location /geocontrib/ {
            index index.html;
            try_files $uri $uri/ /geocontrib/index.html;
        }
    }