Guest User

SWAG AMP config

a guest
Jun 8th, 2021
18
38 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2. listen 443 ssl http2;
  3. listen [::]:443 ssl http2;
  4.  
  5. server_name amp.*;
  6.  
  7. include /config/nginx/ssl.conf;
  8.  
  9. location / {
  10. proxy_pass http://192.168.1.2:8080; # Or whatever local IP and port ADS is listening on
  11. proxy_set_header Host $host;
  12. proxy_set_header X-Real-IP $remote_addr;
  13. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  14. proxy_set_header Upgrade $http_upgrade;
  15. proxy_set_header Connection "Upgrade";
  16. proxy_set_header X-AMP-Scheme $scheme;
  17. proxy_read_timeout 86400s;
  18. proxy_send_timeout 86400s;
  19. proxy_http_version 1.1;
  20. proxy_redirect off;
  21. proxy_buffering off;
  22. client_max_body_size 10240M;
  23.  
  24. # The following nine lines will only work if nginx and AMP are on the same host
  25. error_page 502 /NotRunning.html;
  26. location = /NotRunning.html {
  27. root /opt/cubecoders/amp/shared/WebRoot;
  28. internal;
  29. }
  30.  
  31. location /shared/ {
  32. alias /opt/cubecoders/amp/shared/WebRoot/;
  33. }
  34. }
  35. }
RAW Paste Data