Skip to content

Commit

Permalink
fix: user locator, redirects. (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
morganney committed Mar 1, 2024
1 parent 1dc2fec commit bb7f76d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Checkout
uses: actions/[email protected]
- name: Setup Node
uses: actions/[email protected].1
uses: actions/[email protected].2
with:
node-version: '20.11.0'
- name: Install Dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ jobs:
mkcert -key-file busmap.localhost-key.pem -cert-file busmap.localhost.pem busmap.localhost localhost
cp *.pem packages/web/certs
- name: Setup Node
uses: actions/[email protected].1
uses: actions/[email protected].2
with:
node-version: '20.11.0'
node-version: '20.11.1'
- name: Install Dependencies
run: npm ci
- name: Install Playwright
Expand All @@ -66,7 +66,7 @@ jobs:
SSO_GOOG_CLIENT_SECRET: ${{ secrets.SSO_GOOG_CLIENT_SECRET }}
- name: Upload Test Results
uses: actions/[email protected]
if: failure()
if: ${{ failure() }}
with:
name: playwright-report
path: test-results
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const UserLocator: FC<UserLocatorProps> = ({ withDistance = false }) => {
}
}, [position, map])

if (permission !== 'granted') {
if (permission === 'denied') {
return null
}

Expand Down
1 change: 1 addition & 0 deletions packages/web/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ http {
access_log /var/log/nginx/access.log main;
sendfile on;
keepalive_timeout 65;
server_names_hash_bucket_size 128;

include /etc/nginx/conf.d/core/upstreams.conf;
include /etc/nginx/conf.d/core/logging.conf;
Expand Down
14 changes: 0 additions & 14 deletions packages/web/templates/default.conf.template
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
# Configuration to stage a production build.

server {
# Redirect server configuration
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
server_tokens off;

return 301 https://$host$request_uri;
}

server {
listen 443 ssl;
listen [::]:443 ssl;
http2 on;
server_name test.busmap.online;
server_tokens off;
include /etc/nginx/conf.d/core/ssl.conf;

return 301 https://try.busmap.online$request_uri;
}
Expand Down

0 comments on commit bb7f76d

Please sign in to comment.