Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add temporary domain #961

Closed
wants to merge 1 commit into from
Closed

Conversation

dacook
Copy link
Member

@dacook dacook commented Nov 7, 2024

This allows the logo url to just work: https://ubuntu-20.openfoodnetwork.ie/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBbmtiIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--e8d2b206705f494e912bb88b59a4b77f4c679022/ofn-ireland-logo.png

I've also added a redirect in /etc/nginx/sites-available/:

# Temporary redirect after server migration (dcook 2024-11-07)
server {
   listen 80;
   listen 443;
   server_name  ubuntu-20.openfoodnetwork.ie;

   return 301 https://openfoodnetwork.ie$request_uri;
}

I have to admit I'm confused why this works, I haven't put it in sites-enabled yet. But the main thing is that it's working.

@dacook dacook self-assigned this Nov 7, 2024
@dacook
Copy link
Member Author

dacook commented Nov 12, 2024

@cillian this is the update that I've added to your server.
If you can confirm that all images are now loading without the ubuntu-20 subdomain, then I'll close this PR to keep the config clean.

@cillian
Copy link
Contributor

cillian commented Nov 12, 2024

@dacook yes all images are loading without the ubuntu-20 now. Thanks

@dacook
Copy link
Member Author

dacook commented Nov 12, 2024

Great

@dacook dacook closed this Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Upgrade Ubuntu] ie_prod
3 participants