mirror of
https://github.com/thilo-behnke/wasm-pong.git
synced 2026-08-18 20:56:24 +00:00
working nginx setup
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ RUN npm run build
|
||||
|
||||
FROM nginx:latest
|
||||
|
||||
COPY --from=www_build_stage /build/www/dist/ /usr/share/pong/
|
||||
COPY --from=www_build_stage /build/www/dist/ /usr/share/nginx/pong/web
|
||||
|
||||
COPY ./client/nginx/default.conf /etc/nginx/conf.d/default.conf
|
||||
COPY ./client/nginx/nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
@@ -2,15 +2,14 @@ server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
root /usr/share/pong;
|
||||
root /usr/share/nginx;
|
||||
|
||||
location = / {
|
||||
return 301 /pong/web;
|
||||
}
|
||||
|
||||
location /pong/web {
|
||||
# TODO: Why is this not used?
|
||||
try_files $uri /index.html;
|
||||
location /pong/web/ {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
location /pong/api/ {
|
||||
|
||||
Reference in New Issue
Block a user