-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added nginx reverse proxy (docker compose)
- Loading branch information
1 parent
6d5bec9
commit c30103e
Showing
3 changed files
with
61 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Testing the configuration: | ||
|
||
```bash | ||
docker compose exec nginx nginx -t | ||
``` | ||
Restart Nginx: | ||
```bash | ||
docker compose exec nginx nginx -s reload | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
upstream api { | ||
server eln_backend:8000; | ||
} | ||
|
||
server { | ||
listen 80; | ||
listen [::]:80; | ||
|
||
# server_name | ||
|
||
# letsencrypt challenge | ||
# location ~ /.well-known/acme-challenge{ | ||
# allow all; | ||
# root /usr/share/nginx/html/letsencrypt; | ||
# } | ||
|
||
location / { | ||
proxy_set_header Host $host; | ||
proxy_pass http://api/; | ||
} | ||
} |