-
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 conf and wss address to client which now works when deployed
- Loading branch information
1 parent
f76b0f2
commit b704746
Showing
5 changed files
with
39 additions
and
11 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
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,28 @@ | ||
server { | ||
server_name roguelikeracing.com www.roguelikeracing.com; | ||
# if you want to host the static index.html etc: | ||
# root /var/www/roguelike-racing; | ||
|
||
# make sure docker-compose is running a container | ||
# which is serving the client on this port | ||
location / { | ||
proxy_pass http://localhost:3001; | ||
proxy_set_header X-Forwarded-For $remote_addr; | ||
} | ||
|
||
# connect on client by address: wss://roguelikeracing.com/ws | ||
location /ws { | ||
proxy_pass http://localhost:8082; | ||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "upgrade"; | ||
} | ||
|
||
# displays a test message from the actix server | ||
location /test { | ||
proxy_pass http://localhost:8082; | ||
proxy_set_header X-Forwarded-For $remote_addr; | ||
} | ||
|
||
# ... certbot stuff goes here | ||
} |
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