Skip to content

Instantly share code, notes, and snippets.

@fcaldarelli
Created August 3, 2020 12:59
Show Gist options
  • Save fcaldarelli/ed553baf04d74ae95c572433e9285da0 to your computer and use it in GitHub Desktop.
Save fcaldarelli/ed553baf04d74ae95c572433e9285da0 to your computer and use it in GitHub Desktop.
module.exports = ({ env }) => ({
host: env('HOST', '0.0.0.0'),
port: env.int('PORT', 1337),
baseUrl: 'https://example.com',
url: 'https://example.com/strapi',
admin: {
url: 'https://example.com/strapi/admin'
}
});
location /strapi/ {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://localhost:1337/;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment