-
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.
- Loading branch information
Showing
3 changed files
with
49 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,21 @@ | ||
# AddameServer | ||
|
||
|
||
|
||
4. Check for Configuration File Inside the Container | ||
You can also directly check the contents of the /etc/nginx/conf.d directory | ||
inside the container to ensure your configuration file is present: | ||
|
||
|
||
docker exec addame_nginx_rp ls /etc/nginx/conf.d | ||
|
||
And to inspect the contents of your configuration file (replace default.conf with your file name if different): | ||
|
||
docker exec addame_nginx_rp cat /etc/nginx/conf.d/default.conf | ||
|
||
If the configuration file is correctly placed and Nginx still doesn't seem to behave as expected, | ||
review the configuration file for syntax errors or misconfigurations. | ||
You can use nginx -t inside the container to test the Nginx configuration for syntax correctness: | ||
|
||
|
||
docker exec addame_nginx_rp nginx -t |
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,13 @@ | ||
|
||
server { | ||
listen 80; | ||
server_name addame.com; | ||
|
||
location / { | ||
proxy_pass http://addame_server:8010; # Adjusted to match your service name and internal port | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
} | ||
} |