You've already forked nginx-proxy-manager
							
							
				mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-30 18:05:34 +03:00 
			
		
		
		
	React
This commit is contained in:
		| @@ -12,6 +12,7 @@ server { | ||||
|  | ||||
| 	location /api/ { | ||||
| 		add_header            X-Served-By $host; | ||||
| 		proxy_http_version    1.1; | ||||
| 		proxy_set_header Host $host; | ||||
| 		proxy_set_header      X-Forwarded-Scheme $scheme; | ||||
| 		proxy_set_header      X-Forwarded-Proto  $scheme; | ||||
| @@ -23,7 +24,14 @@ server { | ||||
| 	} | ||||
|  | ||||
| 	location / { | ||||
| 		index index.html; | ||||
| 		try_files $uri $uri.html $uri/ /index.html; | ||||
| 		add_header            X-Served-By $host; | ||||
| 		proxy_http_version    1.1; | ||||
| 		proxy_set_header Host $host; | ||||
| 		proxy_set_header      Upgrade $http_upgrade; | ||||
| 		proxy_set_header      Connection "Upgrade"; | ||||
| 		proxy_set_header      X-Forwarded-Scheme $scheme; | ||||
| 		proxy_set_header      X-Forwarded-Proto  $scheme; | ||||
| 		proxy_set_header      X-Forwarded-For    $remote_addr; | ||||
| 		proxy_pass            http://127.0.0.1:5173; | ||||
| 	} | ||||
| } | ||||
|   | ||||
| @@ -15,7 +15,7 @@ if [ "$DEVELOPMENT" = 'true' ]; then | ||||
|  | ||||
| 	log_info 'Starting frontend ...' | ||||
| 	s6-setuidgid "$PUID:$PGID" yarn install | ||||
| 	exec s6-setuidgid "$PUID:$PGID" yarn watch | ||||
| 	exec s6-setuidgid "$PUID:$PGID" yarn dev | ||||
| else | ||||
| 	exit 0 | ||||
| fi | ||||
|   | ||||
		Reference in New Issue
	
	Block a user