Guest User

Untitled

a guest
Jun 14th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. server {
  2. listen 80;
  3.  
  4. server_name mydomain.co www.mydomain.co *.mydomain.co;
  5.  
  6. #return 302 http://www.mydomain.co;
  7.  
  8. location / {
  9. proxy_pass http://localhost:54662;
  10. proxy_http_version 1.1;
  11. proxy_set_header Upgrade $http_upgrade;
  12. proxy_set_header Connection keep-alive;
  13. proxy_set_header Host $host;
  14. proxy_cache_bypass $http_upgrade;
  15. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  16. proxy_set_header X-Forwarded-Proto $scheme;
  17. }
  18. }
  19.  
  20. public class Program
  21. {
  22. public static void Main(string[] args)
  23. {
  24. BuildWebHost(args).Run();
  25. }
  26.  
  27. public static IWebHost BuildWebHost(string[] args) =>
  28. WebHost.CreateDefaultBuilder(args)
  29. .UseStartup<Startup>()
  30. .UseKestrel()
  31. .UseUrls("http://*:54662")
  32. .Build();
  33. }
Add Comment
Please, Sign In to add comment