goservice | Example Go service wtih best practices and idioms | Microservice library
kandi X-RAY | goservice Summary
kandi X-RAY | goservice Summary
Example Go service wtih best practices and idioms
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- ipHandler handles IP queries .
- uiHandler handles the UI page .
- This is the main loop for the main loop
- createBaseHandler creates a new http . Handler
- ServeHTTP implements the http . Handler interface .
- NewM returns a new http . Handler wrapping h .
goservice Key Features
goservice Examples and Code Snippets
Community Discussions
Trending Discussions on goservice
QUESTION
I have a nginx webserver running and a golang api as backend.
At the moment I have the web-application running at braurl.se.
You can fetch data at http://braurl.se:8080/
You can view the front-end at https://braurl.se
I am having trouble fetching data from my backend and it seems that I've messed up my port configuration
I would like to not expose the 8080 port and rather be able to fetch the data with braurl.se/api/
I believe what I am doing wrong is the port and proxypass within any of the files shown below
This is my files, can anyone point me where and what I'm doing wrong:
Nginx config file:
...ANSWER
Answered 2020-Feb-25 at 21:49NGinx aply priority on path, mean that if the path from the top get a match, it won't check followings path. location /
should always been at the end.
Container should share a network to be able to se each others, without having to expose or share port with host.
NGinx config:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install goservice
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page